更多"有如下程序: #include <iostream> using "的相关试题:
[单项选择]有如下程序:
#include <iostream>
using namespace std:
class A
public:
virtual void funcl( )cout<<"A1";
void func2( )cout<<"A2";
;
class B:public A
public:
void funcl( )cout<<"B1";
void fllnc2( )cout<<"B2";
;
int main( )
A*p=new B;
p->funcl( );
p->func2( );
return 0:
运行程序,屏幕上将显示输出
A. B182
B. A1A2
C. BlA2
D. AlB2