知识点:C/C++ 6/10(多选) 下面的类: #include <...
发布于 2022-03-03 17:30:55
知识点:C/C++ 6/10(多选)
下面的类:
#include <iostream.h>
class A
{
public:
virtual void play(){cout<<"A"<<endl}
}
class B:public A
{
public:
void play(){cout<<"B"<<endl}
}
哪几个输出“B”?
下面的类:
#include <iostream.h>
class A
{
public:
virtual void play(){cout<<"A"<<endl}
}
class B:public A
{
public:
void play(){cout<<"B"<<endl}
}
哪几个输出“B”?
登录后免费查看答案
关注者
0
被浏览
17