Which SOLID principle states that software entities (classes, modules, functions) should be open for extension, but closed for modification?
ALiskov Substitution Principle (LSP)
BOpen-Closed Principle (OCP)
CInterface Segregation Principle (ISP)
DSingle Responsibility Principle (SRP)
Explanation
The Open-Closed Principle allows system behavior to be extended via polymorphism or inheritance without modifying existing source code.
Exam Relevance
- Topic: Software Architecture
- Subtopic: SOLID Principles

No Comments