Design Principle: Single Responsibility Principle(SRP)
This Single Responsibility Principle(SRP) says- A class should have only one responsibility (and a single reason for it to be changed). Class should have only one job/responsibility, and that job/responsibility should be encapsulated inside that class.