#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,5.8,class,son,mother,public From: https://www.cnblogs.com/zjm921/p/17383199.html