SOLID Principles

Single Responsibility Principle: A class should be limited to a single responsibility. There should be one and only one reason to change a class. Supported by Open/Closed Principle: Class should be open for extension but closed for modification. This is supported by Decorator pattern which allows: to dynamically add behaviours to an existing class incremental […]