填空题
在C++类的规定中:静态函数只能给引用类的静态成员和
【11】
。
【参考答案】
非数据成员
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
在编译时才确定的函数调用称为 【12】 ,它是通过使用 【13】 来实现的。
点击查看答案&解析
填空题
将下面程序补充完整。 #include <iostream> using namespace std; class Base public: 【14】 fun()return 0; 声明虚函数 ; class Derived:public Base public: x,y; void SetVal(int a,int b) int fun()return x+y; ; void 【15】 SetVal(int a,int b)x=a;y=b; 类Derived成员函数 void main() Derived d; cout<<d.fun()<<endl;
点击查看答案&解析
相关试题
下列程序的输出结果为( )。 int fun(...
以下程序的输出结果是( )。 main() ...
下面程序的运行结果为( )。 class A ...
以下正确的描述是( )。
对于下面程序,对p调用正确的是( )。 c...