Divergent Changes
Divergent change occurs when a single class has to be modified in multiple ways for different reasons. This often indicates that the class is handling more than one responsibility.
Code :

Treatment:
Apply the Single Responsibility Principle by splitting the class into multiple classes, each handling a specific responsibility.
