void P1(){cout$amp; void P2(){cout$amp;};
class B:public A{
void P1(){cout$amp; virtual void P2(){cout$amp;}
..........
A*cl=NULL;
cl=new A;
A->P1();
A->P2();
delete cl;
cl=NULL;
cl=new B;
A->P1();
A->P2();
delete cl;
cl=NULL;
..........
写出运行结果;
参考答案