#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,5.12,mother,public From: https://www.cnblogs.com/lml66/p/17396561.html