Open Closed Principle
Open-closed Principle (OCP) states:
Objects or entities should be open for extension but closed for modification.
Open-closed Principle (OCP) states:
Objects or entities should be open for extension but closed for modification.