试题内容
一个类是 (1)。在定义类时,将属性声明为private的目的是 (2)。
(1) A.一组对象的封装
B.表示一组对象的层次关系
C.一组对象的实例
D.一组对象的抽象定义
(2)A.实现数据隐藏,以免意外更改
B.操作符重载
C.实现属性值不可更改
D.实现属性值对类的所有对象共享
软题库参考答案:D、A(仅供参考)
软题库解析:正在加载....
你可能感兴趣的试题
there is nothing in this world constant but inconstancy.-SWIFT
Project after project designs a set of algorithms and then plunges intoconstruction of customer-deliverable software on a schedule that demands delivery of the first thing built.
In most projects, the first system built is (1) usable. It may be too slow, too big , awkward to use, or all three. There is no (2 ) but to start again, smarting but smarter and build a redesigned version in which these problems are solved. Th
某PC的Internet协议属性参数如下图所示,默认网关的IP地址是( )。
A.8.8.8.8
B.202.117.115.3
C.192.168.2.254
D.202.117.115.18
编译程序对高级语言源程序进行翻译时,需要在该程序的地址空间中为变量指定地址,这种地址称为 ( ) 。
A、逻辑地址
B、物理地址
C、接口地址
D、线性地址