首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下关键字不能用来声明类的访问权限的是( )。
以下关键字不能用来声明类的访问权限的是( )。
admin
2020-12-21
27
问题
以下关键字不能用来声明类的访问权限的是( )。
选项
A、public
B、static
C、protected
D、private
答案
B
解析
类的成员访问权限有3种:public(公用)、protected(保护)、private(私有)。
转载请注明原文地址:https://kaotiyun.com/show/1pyp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
使用VC6打开考生文件夹下的源程序文件modi3.cpp。其中定义的类并不完整,按要求完成下列操作,将类的定义补充完整,使得程序输出21到屏幕。完成以下功能:(1)增加静态私有变量mNumber,类型为int,请在注释∥********1***
有如下类声明: class XA { int x; public: XA(int n){x=n;} }; class XB:public XA { int y; publi
在下列关键字中,不能用来表示继承方式的是
已知有数组定义chara[3][4];下列表达式中错误的是
在下面的类定义中,横线处应填入的内容是 class Fred { public: void print(){cout<<data<<endl;}
在函数中,可以用auto、extern、register和static这四个关键字中的一个来说明变量的存储类型,如果不说明存储类型,则默认的存储类型是
下列关于C++函数的叙述中,正确的是
“商品”与“顾客”两个实体集之间的联系一般是
从表中任何一个结点位置出发就可以不重复地访问到表中其他所有结点的链表是
随机试题
男婴,5天,足月顺产,生后2天出现拒奶,反应差,体温38℃,黄疸。以下最支持诊断的发现是
A.硝酸甘油注射剂B.氨酰心安片C.低分子右旋糖酐D.硝苯吡啶E.尿激酶患者,男,75岁。突然胸骨后疼痛12小时,伴有气急。血压:26/14.6kPa(195/110mmHg)。心电图示:胸导联V1~V3异常Q波,ST段抬高。首选药物为
安装在易于受到人体或物体碰撞部位的建筑玻璃,如落地窗、玻璃门、玻璃隔断等,应采取()措施。
根据合伙企业法律制度的规定,下列各项中,属于普通合伙企业的合伙人当然退伙情形的有()。
关于同一控制下企业合并,下列会计处理中正确的有()。
何谓操行评定?操行评定的一般步骤是什么?
上课时学生被突然飞起来的小鸟吸引,这种心理现象是()
当代中国.维护社会公平正义的最后一道防线是()
定义如下变量和数组:intk;inta[3][3]={9,8,7,6,5,4,3,2,1};则下面语句的输出结果是()。for(k=0;k<3;k++)printf("%d",a[k][k]);
Formanywomennowadays,choosingwhethertoworkornottoworkoutsidethehomeisaluxury:Theymustworkto【B1】______.Othe
最新回复
(
0
)