单选题 A bit of a misnomer for object composition is ( )
A、
The container class can only access it through the interface of the contained object.
B、
"Black box" reuse, good encapsulation, because the internal details of the contained objects are not visible to the outside world.
C、
By obtaining references to other objects of the same type,Compositions (of objects) can be defined dynamically at runtime
D、
Create extremely serious dependence.
单选题 According to the idea of design pattern, the priority should be used in program development ( ) Relation to achieve reuse.
单选题 Which design pattern is represented by the following class diagram? ( )
单选题 The two major themes of design patterns are ( )
A、
System maintenance and development
B、
Object composition and class inheritance
C、
System Architecture and System Development
D、
System Reuse and System Expansion
单选题 In the observer mode, the wrong statement is ( )
A、
The update of the observer role is passive.
B、
The observed can notify the observer to update
C、
The observer can change the state of the observed, and then the observed will notify all observers to proceed according to the state of the observed.
D、
All the above statements are wrong.
单选题 "Don't talk to strangers" is a popular expression of principle ( )
D、
Demeter: An object should know as little as possible about other objects
单选题 Be dependent on abstractions, not concrete. That is, programming for the interface, not for the implementation, is the expression of ( )
B、
Interface Segregation Principle
C、
Liskov Substitution Principle
D、
Dependency Inversion Principle
单选题 The following are object-oriented basic principles ( )