观察下面一段代码: class ClassA { public: virtual ~ ClassA(){} virtual void FunctionA(){} } class ClassB { public: virtual void FunctionB(){} } class ClassC : public ClassA,public ClassB { public: } ClassC aObject ClassA* pA=&aObject C
发布于 2022-03-02 15:51:04
观察下面一段代码:
关于pA,pB,pC的取值,下面的描述中正确的是:
class ClassA { public: virtual ~ClassA(){} virtual void FunctionA(){} } class ClassB { public: virtual void FunctionB(){} } class ClassC : public ClassA, public ClassB { public: } ClassC aObject ClassA *pA = &aObject ClassB *pB = &aObject ClassC *pC = &aObject
关于pA,pB,pC的取值,下面的描述中正确的是:
登录后免费查看答案
关注者
0
被浏览
34