• 2022-06-08
    设有以下定义和程序: #include<iostream.h> class A1 public: void show 1() cout<<" class A 1"<<end1; class A2:public A1 public: void show20 cout<<"class A2"<<end1; ; class A3:protected A2 public: void show3() cout<<"class A 1 "<<end1; ; void main()
    A: A1 obj1;A2 obj2;A3 obj3;则以下不合语法的调用语句是(
    B: )。A) obj1.show1();
    C: B) obj2.show1();
    D: C) obj3.show1();
    E: D) obj2.show2();
  • 举一反三