1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
Class Father{ private: char* name; int health; double wealth; int dadGene; public: Father(name,dadGene,health,wealth); }
Class Mother{ private: int momGene; double love; double happy;
public: Mother(momGene,love,happy); }
Class Cute: public Father,public Mother{ public (name,health,wealth,dadGene,momGene,love,happy); } int main(){ Cute boy(Name,65536,unlimited,Y,X,ALL,forever); return boy; }
|
近期评论