Real questions for software designers, special object-oriented exercises (6)

Polymorphism

In object-oriented technology, (38) illustrates that an object has multiple forms, (39) defines the relationship between super classes and subclasses. (Second half of 2012)
(38) A. Inheritance B. Combination C. EncapsulationD. Polymorphism
(39) A. InheritanceB. Composition C. Encapsulation D. Polymorphism

Insert image description here

Among several different forms of polymorphism, (37) polymorphism is a specific type of polymorphism, which means that the same name can mean different things in different contexts. (First half of 2013)
(37) A. Parameter B. ContainsC. OverloadD. Force

Insert image description here

In object-oriented technology, different objects can produce completely different results when receiving the same message. This phenomenon is called (39), which is supported by the (40) mechanism. Utilizing the hierarchical relationship of classes, messages with general functions are stored at high levels, while different behaviors that implement this function are placed at lower levels. Objects generated at these low levels can respond differently to general messages. (First half of 2014)
(39) A. Binding B. Inheritance C. MessageD. Polymorphism
(40) A. BindingB. InheritanceC. Message D. Polymorphism

Insert image description here

Polymorphism is divided into four different forms: parametric polymorphism, inclusion polymorphism, overloaded polymorphism and forced polymorphism. Among them (38) polymorphism exists in many languages, and the most common example is subtyping. (Second half of 2014)
(38) A. ParametersB. containsC. Overload D. Force

Insert image description here

In the object-oriented method, different objects receiving the same message can produce completely different results. This phenomenon is called (37). When used, the user can send a generic message, and the implementation details are left to the receiving object. (Second half of 2016)
(37) A. Interface B. Inheritance C. OverrideD. Polymorphism

Insert image description here

In the object-oriented approach, polymorphism refers to (40). (First half of 2017)
(40)A. The client class does not need to know the implementation of the specific subclass of the method being called.
B. The object dynamically modifies the class
C. One object corresponds to multiple database tables
D. Subclasses can only override non-abstract methods in the parent class

Insert image description here

Guess you like

Origin blog.csdn.net/weixin_50843918/article/details/135437853