• 2022-06-01
    下列程序运行结果是 。class A{public:virtual void funcl(){cout[< "A1";}void func2(){cout<< "A2";}};class B: public A{public:void func1(){cout<< "B1";}void func2(){cout<< "B2";}};int main(){A *p=new B;p-]funcl();p->func2();return 0;}
  • 举一反三