阅读以下代码,输出结果为()
class A
{
public:
virtual void a()=0;
virtual ~A(){}
};
class AA:public A
{
public:
void a()
{
cout
A nihao2 nihao3 delete AA delete AAA delete B
B nihao3 nihao3 delete AAA delete AA delete B
C nihao2 nihao2 delete AAA delete AA delete B
D nihao2 nihao3 delete AAA delete AA delete B
相关试题
-
阅读以下代码,输出结果为() class A { public: virtual void a()=0; virtual ~A(){} }; class AA:public A { public
-
下面代码执行结果为() class A { public: void B() { cout
-
class A{ public: virtual void func1(){} Void func2 (){} }; class B:public A{ public: void
-
ussion和Stringed实现代码略*/ class Brass ______{ public: void play(Note n) {cout<<Brass.play() <<
-
C#中下列代码运行结果是() public class Student { public virtual void Exam() { C