填空题

C++中,设置虚基类的目的是 【11】 。

【参考答案】

解决二义性问题
<上一题 目录 下一题>
热门 试题

填空题
多态性分为两类:编译时的多态性和 【10】 的多态性。
填空题
若有以下程序:#include <iostream>using namespace std;class Basepublic: void who()cout<< Base <<end1:;class Derived1: public Basepublic: void who() cout<< Derived <<end1;;int main() Base *p; Derived1 obj1; p=&obj1; p->who(); return 0; 则该程序运行后的输出结果是 【9】 。
相关试题
  • 下面程序的输出结果是 【15】 。#incl...
  • 下列程序的输出结果是 【14】 。#incl...
  • 下面程序的输出结果为:Base:: fun,请...