题目内容
转移到ch7 综合。写结果。classOBJ1{public:OBJ1(){cout<<”O1”;}};classOBJ2{public:OBJ2(){cout<<”O2”;}};classBase1{public:Base1(){cout<<”B1”;}};classBase2{public:Base2(){cout<<”B2”;}};classBase3{public:Base3(){cout<<”B3”;}};classBase4{public:Base4(){cout<<”B4”;}};classDerived:publicBase1,virtualpublicBase2,publicBase3,virtualpublicBase4{public:Derived():Base4(),Base3(),Base2(),Base1(),obj2(),obj1(){}protected:OBJ1obj1;OBJ2obj2;};intmain(){Derivedaa;}
查看答案
搜索结果不匹配?点我反馈