SOLID Principles: Open-Closed Principle (OCP)
The Open-Closed Principle (OCP) is one of the SOLID principles of object-oriented programming.
Definition: Software entities like classes, modules, functions, etc., should be open for extension but closed for modification.
The “open” part says: We s...
amburi.hashnode.dev2 min read