填空题
在面向对象的程序设计中,用来请求对象执行某一处理或回答某些信息的要求称为
【2】
。
【参考答案】
消息
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
在长度为n的线性表中查找一个表中不存在的元素,需要的比较次数为 【1】 。
点击查看答案&解析
单项选择题
若有以下程序:# include <iostream>using namespace std;class Basepublic: Base ( ) x=0; int x;;class Derived1 : virtual public Basepublic: Derived1 ( ) x=10;; class Derived2 : virtual public Basepublic: Derived2 () x=20;;class Derived : public Derived1,protected Derived2 ;int main() Derived obj; cout<<obj.x<<end1; return 0; 该程序运行后的输出结果是
A.10
B.20
C.30
D.0
点击查看答案&解析
相关试题
下面程序的输出结果是 【15】 。#incl...
下列程序的输出结果是 【14】 。#incl...
下面程序的输出结果为:Base:: fun,请...
C++中,设置虚基类的目的是 【11】 。
多态性分为两类:编译时的多态性和 【10...