SOLID principles – Part 2: Open/Closed Principle
This is the second of a five part series, where I go over the 5 principles which make up the SOLID principles by Robert C. Martin.
The second one is O: Open/Closed Principle (OCP)
This principle states that classes should be open to extension, but closed to modification.