题目详情

在面向对象方法中,不同对象收到同一消息可以产生完全不同的结果,这一现象称为(  )。在使用时,用户可以发送一个通用的消息,而实现的细节则由接收对象自行决定。

  • A.接口
  • B.继承
  • C.覆盖
  • D.多态

正确答案及解析

正确答案
D
解析

本题考查面向对象多态的概念

在收到消息时,对象要予以响应。不同的对象收到同一消息可以产生完全不同的结果,这种现象就叫多态。

包含此试题的试卷

你可能感兴趣的试题

单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.state
  • B.constant
  • C.instance
  • D.member
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.actor
  • B.instance
  • C.component
  • D.class
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.methods
  • B.interactions
  • C.interfaces
  • D.behaviors
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.systems maintenance process
  • B.systems implementation process
  • C.systems design process
  • D.systems testing process
查看答案
单选题

Unified Modeling Language(UML) is a widely used method of visualizing and documenting an information system. The UML can be used to develop( 71 ), in which an object represents a person, place, event, or transaction that is significant to the information system. Systems analysts define an object's attributes during the( 72 ). An object also has( 73 )which are tasks or functions that the object performs when it receives a message, or command, to do so. A(n)( 74 )is a group of similar objects. If objects are similar to nouns, attributes are similar to adjectives that describe the characteristics of an object. Objects can have a specific attribute called a(n)( 75 ), which of an object is an adjective that describes the object's current status. All objects within a class share common attributes and methods, so a class is like a blueprint, or template for all the objects within the class.

  • A.database models
  • B.object models
  • C.event models
  • D.static system models
查看答案

相关题库更多 +