首页 > 其他分享 >4.28

4.28

时间:2023-04-28 20:01:51浏览次数:38  
标签:daughter cout class son 4.28 mother public

#include<iostream>

using namespace std;

#include<string>

class mother {

public:

    mother()

    {

        cout << "mother\n";

    }

};

class daughter : public mother {

public:

    daughter()

    {

        cout << "daughter\n";

    }

};

class son : public mother {

public:

    son()

    {

        cout << "son\n";

    }

};

int main()

{

    daughter cynthia;

    son daniel;

    return 0;

}

标签:daughter,cout,class,son,4.28,mother,public
From: https://www.cnblogs.com/zjm921/p/17363040.html

相关文章

  • 2023.4.28——软件工程日报
    所花时间(包括上课):6h代码量(行):0行博客量(篇):1篇今天,上午学习,下午学习并开会。我了解到的知识点:1.了解了一些数据库的知识;2.了解了一些python的知识;3.了解了一些英语知识;5.了解了一些Javaweb的知识;4.了解了一些数学建模的知识;6.了解了一些计算机网络的知识;......
  • 4.28
    #include<stdio.h>main(){intm,n,number=0;printf("红球白球黑球\n");printf("......................\n");for(m=0;m<=3;m++)for(n=0;n<=3;n++)if(8-m-n<=6)printf("%2d:%d%d%d\n",++number,m,n,8-m-n);}......
  • 4.28
    CSS下拉菜单<style>.dropdown{position:relative;display:inline-block;}.dropdown-content{display:none;position:absolute;background-color:#f9f9f9;min-width:160px;box-shadow:0px8px16px0pxrgba(0,0,0,0.2);padding:12px......