单选题

The meaning of the Open-Close principle is that a software entity ( )

A、

It should be open for extension and closed for modification.

B、

Should be open to modification and closed to extension

C、

Should be open to inheritance and closed to modification

D、

None of the above is correct

下载APP答题
由4l***fd提供 分享 举报 纠错

相关试题

单选题 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.

A、

delegation

B、

inheritance

C、

creation

D、

none of the above

单选题 Which design pattern is represented by the following class diagram? ( )b3a0343ae23a84d26a4acf7a6d27dc0e

A、

Template Method

B、

Command

C、

Memento

D、

State

单选题 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 ( )

A、

Interface isolation

B、

Liskov substitution

C、

Dependency inversion

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 ( )

A、

Open-closed principle

B、

Interface Segregation Principle

C、

Liskov Substitution Principle

D、

Dependency Inversion Principle

单选题 The following are object-oriented basic principles ( )

A、

Inheritance

B、

Encapsulation

C、

Liskov substitution

D、

Neither