首页
普通专升本
成人高考
学位英语
在线刷题
最近学习
最近学习课程
暂无数据
登录
注册
您现在位置:
模拟考场
>
湖北自学考试
>
专业课
>
C++程序设计
>
浏览试题
[单选题]
下面选项中,对类A的析构函数的正确定义是
A
~A::A(void)
B
void ~A::A(参数)
C
~A::A(参数)
D
void ~A::A()
收藏
查看答案
参考答案
试题答案:
A
答案解释:
相关题目
下列有关重载函数的说法中正确的是()
#include < iostream, h > class testl { private : int x; public: testl ( ) { x = 2 ; } void set(int a){x =a;} void get( ) { cout << x << endl; } };class test2{ private: int x; public : test2 ( ) { x = 3 ; } void set( int a) { x = a; } void get( ) { cout << x << endl; } }; class test: public testl, public test2 { private : int x; public:void set( int a) { x=a; } void gettest( ) {cout << x << endl; } }; void main( ) { test a; _________; } };
C++类体系中,不能被派生类继承的有()
在下面所列项中,不是面向对象的特点的是
类的构造函数被自动调用执行的情况是在定义该类的()
基类private成员,通过public派生,其在派生类中为
析构函数的参数个数为
#include < iostream, h > void main() { int x =5; const int const p = &x; ________ cout << p << endl; }
有关多态性说法不正确的是()
对于多重继承,下列描述正确的是( )
热门试题
1.
财政会计报表按编报的会计主体不同,可以分为( )
2.
The objective of the Chartist Movement was democratic rights for all men, it took its name from “________”. A.The Bill of Rights B.The Agreement of the People C.The People's Charter D.The Great Charter
3.
2012年5月3日至4日在北京举行了第四轮中美战略与经济对话。本轮对话的主题是
4.
从轻处罚
5.
47. Henry James’ literary criticism is an indispensable part of his contribution to literature. What’s his outlook in literary criticiam?
热门试卷
成人高考专升本《政治》模拟试卷
去做题
已有3418做题
2020年湖北成人高考专升本政治模拟试题三
去做题
已有2214做题
成人高考专升本政治考试模拟试题及答案(1)
去做题
已有1901做题
湖北成考专升本政治真题(2021年)
去做题
已有1364做题
湖北成考高起点语文真题(2021年)
去做题
已有1228做题