HaitiLibre Quiz

Computer science 3.1 EXPERT

Difficulty Level: N3 Hard
Welcome to the final challenge of this series! This last difficult level quiz is aimed at scholars and computer enthusiasts. From cutting-edge hardware to advanced programming, including the innovations of tomorrow, test your knowledge of the concepts shaping the digital future.
Progress 1 / 10
Which software design principle states that a class or module should be open to extension, but closed to modification?

75% of players answered correctly.

THE CORRECT ANSWER: The Open/Closed Principle

The Open/Closed principle, identified by the letter O in the architectural acronym SOLID, constitutes a fundamental rule of object-oriented software design. Originally formulated by Bertrand Meyer in the late 1980s, this recommendation establishes that a software entity must be open to functional extensions, but closed to modifications of its existing source code.Concretely, developers must design their class structures in such a way as to be able to add new functionalities without altering the behavior of components already proven and deployed. The systematic application of this principle generally relies on the use of abstraction, inheritance or polymorphism, as well as appropriate design patterns.By avoiding direct modification of existing code, we drastically reduce the risks of software regression and the appearance of new malfunctions within complex IT applications.