# Divergent Change

> One class that needs to be changed for different reasons.

- **Category**: Code Smells
- **Subcategory**: change-preventers
- **Canonical URL**: https://designpattern.fyi/code_smells/divergent-change/

---

## Description
'**Intent**: Identify when a single class requires changes for multiple unrelated reasons.

**Context**: You find yourself modifying the same class for different types of changes (database changes, UI changes, business logic changes).

**Solution**: Split the class into separate classes, each responsible for a single type of change. Apply SRP.'



## Use Cases
Use when a class is modified for multiple unrelated reasons.









---
**Reference**: [Original Source](https://refactoring.guru/smells/divergent-change)

