The principle that suggests that software entities should be open for extension but closed for modification is known as?

  • Single Responsibility Principle (SRP)
  • Open/Closed Principle (OCP)
  • Liskov Substitution Principle (LSP)
  • Interface Segregation Principle (ISP)
The Open/Closed Principle (OCP) recommends that software entities (such as classes, modules, or functions) should be designed in a way that allows for extensions without modifying their source code. This promotes code stability and reusability.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *