运行下列程序时的输出结果是( )。#includeusing namespace std;class MyClassA{protected: int n;public: MyClassA(int t) { n=t;} void print() { cout<
A. 12
B. 21
C. 112
D. 121
运行下列程序时的输出结果是( )。#includeusing namespace std;class MyClassA{public: MyClassA( ) { cout<<"A";}};class MyClassB:public MyClassA{public: MyClassB( ) { cout<<"B";}};class MyClassC:virtual private MyClassA{public: MyClassC( ) { cout<<"C";}};class MyClassD:protected MyClassC,MyClassB{public: MyClassD( ) { cout<<"D";}};int main(void ){ MyClassD t; system("pause"); return 0;}
ACBD
B. ABACD
C. ACABD
D. ABCD