CS FundamentalsModerateCognizant · Capgemini pattern

The 'O' in SOLID states that a software module should be:

  1. A. Optimised before it is extended
  2. B. Owned by exactly one team
  3. C. Open for extension but closed for modification
  4. D. Open for modification but closed for extension

Correct answer: C. Open for extension but closed for modification

The Open/Closed Principle: add new behaviour by extending (new subclasses, strategies, plug-ins) rather than editing tested code.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic