Introduction
This is the first article of a series about the SOLID Principles applied at an architectural level. If you are familiar with the SOLID principles for class design in OOP and if you have ever wondered if you can use them when designing the architecture of a system, I will try to give you some insight.
At a class level, the Open-Closed Principle (OCP) states that a class is opened for extension but closed to modification, meaning that you should be able to extend a class's behavior without modifying it. This is usually done by extending the class, either using inheritance or composition.
from DZone.com Feed https://ift.tt/2JbXWox
No comments:
Post a Comment