在面向对象系统中,对象是基本的运行时实体。现实世界中电视机的颜色、音量、亮度、灰度和频道等是其(1),它们具体的值表示了电视机的(2)。
(1)
- A.标识
- B.属性
- C.行为
- D.状态
正确答案及解析
正确答案
解析
本题考查面向对象基础知识。在面向对象的系统中,对象是基本的运行时实体,它既包括数据(属性),也包括作用于数据的操作(行为)。所以,一个对象把属性和行为封装为一个整体。一个对象通常可由对象名、属性和操作3部分组成;属性可以是一些数据,也可以是另一个对象。每个对象都有它自己的属性值,表示该对象的状态。(1)中电视机的颜色、音量、亮度、灰度和频道等属于该实体的属性,B选项正确。(2)中这些属性的具体的值表示了该实体的状态,D选项正确。
包含此试题的试卷
你可能感兴趣的试题
( )is the process of transforming information so it is unintelligible to anyone but the intended recipient.
-
- A.Encryption
- B.Decryption
- C.Security
- D.Protection
- 查看答案
As each application module is completed,it undergoes( )to ensure that it operates correctly and reliably.
-
- A.unit testing
- B.integration testing
- C.system testing
- D.acceptance testing
- 查看答案
( )algorithm specifies the way to arrange data in a particular order.
-
- A.Search
- B.Random
- C.Sorting
- D.Merge
- 查看答案
After analyzing the source code,( )generates machine instructions that will carry out the meaning of the program at a later time.
-
- A.an interpreter
- B.a linker
- C.a compiler
- D.a converter
- 查看答案
( )can help organizations to better understand the information contained within the data and will also help identify the data that is most important to the business and future business decisions.
-
- A.Data processing system
- B.Big Data analytics
- C.Cloud computing
- D.Database management
- 查看答案