试题详情

试题内容

一个类是  (1)。在定义类时,将属性声明为private的目的是  (2)。
(1) A.一组对象的封装
B.表示一组对象的层次关系
C.一组对象的实例
D.一组对象的抽象定义
(2)A.实现数据隐藏,以免意外更改
B.操作符重载
C.实现属性值不可更改
D.实现属性值对类的所有对象共享

查看答案

软题库参考答案:D、A(仅供参考)

软题库解析:正在加载....

你可能感兴趣的试题

8题:下列攻击行为中,属于典型被动攻击的是()。
A.拒绝服务攻击
B.会话拦截
C.系统干涉
D.修改数据命令
12题:(14)表示显示器在横向(行)上具有的像素点数目。  
A.显示分辨率  
B.水平分辨率  
C.垂直分辨率 
D.显示深度 
57题:

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
54题:

某PC的Internet协议属性参数如下图所示,默认网关的IP地址是( )。



A.8.8.8.8
B.202.117.115.3
C.192.168.2.254
D.202.117.115.18

20题:

编译程序对高级语言源程序进行翻译时,需要在该程序的地址空间中为变量指定地址,这种地址称为  ( )  。
A、逻辑地址
B、物理地址
C、接口地址
D、线性地址

53题:采用Dijkstra算法求解下图A点到E点的最短路径,采用的算法设计策略是()。该最短路径的长度是()

A.分治法
B.动态规则
C.贪心算法
D.回溯法
A.5
B.6
C.7
D.9