The second SOLID principle concerns the extensibility of components and is called the Open/Closed Principle. Its focus is on avoiding changes when we need to extend a component's feature. The principle states:
Software entities like classes, modules and functions should be open for extension but closed for modifications.
In the design of the components of our application, we have to take into account these two aspects:
If we apply this principle, we can get more easily adaptable and maintainable applications.
To illustrate how to apply ...