首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
有如下类定义: class Base{ int l; public: int m; private: int n; }; class Derived:
有如下类定义: class Base{ int l; public: int m; private: int n; }; class Derived:
admin
2015-06-27
14
问题
有如下类定义:
class Base{
int l;
public:
int m;
private:
int n;
};
class Derived: public Base{};
则类 Derived 所拥有的数据成员的个数是
选项
A、0
B、1
C、2
D、3
答案
D
解析
C++中派生类拥有基类的所有成员,所以Derived类中数据成员分别是:l、m、n,答案为D。
转载请注明原文地址:https://jikaoti.com/ti/XXXiFFFM
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
简述秦巩固统一的措施、意义。(云南大学2013年历史学综合真题)
下列表述不是爱尔维修的主张是
根据我国资源税的有关规定,下列资源应征收资源税的是()。
下列有关法学的表述,正确的有()。
设F(x,y)在点(x0,y0)某邻域有连续的偏导数,F(x0,y0)=0,则F’y(x0,y0)≠0是F(x,y)=0在点(x0,y0)某邻域能确定一个连续函数y=y(x),它满足y0=y(x0),并有连续的导数的_________条件.
设f(x)在x=0的某邻域内有定义,且满足
设微分方程xy′+2y=2(ex-1).(Ⅰ)求上述微分方程的通解,并求使y(x)存在的那个解(将该解记为y0(x)),以及极限值y0(x);(Ⅱ)补充定义之后使y0(x)在x=0处连续,求y′0(x),并请证明:无论x=0还是x≠0,y′0(x)均连
假定要建立一个学校科研项目管理的信息系统,需要管理如下信息:·教师:教师编号、教师姓名;·项目:项目编号、项目名称、资助额;·学生:学生编号、学生姓名、学位,学生按学位分为本科生和研究生。其中带下划线的属性是唯一标识,其他需满足的要求如下:·每位
某书店采用了SQLServer2008数据库管理系统,该书店有一个需求,需要统计指定年份中每一本书的销售总额,例如:查询2012年所有书的销售总额。已知图书结构如下:图书表(书号BOOK_ID,书名BOOK_NAME,单价BOOK_PRICE)销
下列选项中属于字符串常量的是()。
随机试题
简述决策的类型。
Whenhewasayoungman,hetraveledabouttheworld______.
用于判断COPD分期的肺功能指标是
建设工程职业健康安全与环境管理的特点是()。
保障会计软件及计算机硬件的正常运行是软件编制人员的职责。()
面对增值型现金剩余,企业应选择的财务战略是()。
小学生所处的年龄阶段属于()。
每个人在社会上生活,每天都要与人交往,经常会遇到些别人对自己无礼、无理的事,碰到些别人需要自己理解、帮助、支持的事。在这些事情面前,是宽宏大量,与人为善,还是小肚鸡肠,与人为恶,不仅是一个人道德品质修养高低的表现,而且直接影响到自己的精神世界,
下列关于路由选择协议相关技术的描述中,错误的是()。
ProverbsarequitecommoninspokenEnglish.Wedonotnormallyputtheminacompositionorletter.Sometimesitis(11)ify
最新回复
(
0
)