• 2022-06-16
    下面关于类的继承与派生的程序,其输出结果是:#include[iostream]using namespace std;class A {public: A(){cout<<"A";} };class B{public: B(){cout<<"B";} };class C:public A { B b;public: C(){cout<<"C";} };int main(){ C obj; return 0; }
    A: CBA
    B: BAC
    C: ACB
    D: ABC