Development
SOLID Principles Part 03: The Open Closed Principle
Principle A class, properties and methods should be open for extension but closed for modification. E.g. If we need to add new functionality to a class, it should be added…