Become Educator
Contact us
Sign in
O: Open-Closed Principle
Home
object-oriented programming (OOP) & SOLID Principles
O: Open-Closed Principle
The second SOLID principle is the open-closed principle. Its official definition holds that software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.