填空题
在面向对象方法中,______描述的是具有相似属性与操作的一组对象。
【参考答案】
类。
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
在下列的程序的横线处填上适当的语句,使该程序的输出为12。 #include<iostream.h> using namespace std; class Base public: int a,b; Base(int i)a=i; ; class Derived:public Base int a; public: Derived(int x):Base(x),b(x+1); void show() ______; 输出基类数据成员a的值。 cout<<b<<endl; ; void main() Derived d(1); d.show(); return 0;
点击查看答案&解析
填空题
友元类的所有成员函数都是另一个类的______函数。
点击查看答案
相关试题
有以下类定义 class Point public: Po...
下列程序的输出结果是( )。 #include...
数据的逻辑独立性是指( )。
有如下程序段: int i=1; while(1...
以下程序的输出结果是 ______。 #...