Single Responsibility Principle

Violation of Principle

Problem with above design


Adherence of principle