Single Responsibility Principle (SRP)
🧠 What is the Single Responsibility Principle (SRP)?
The Single Responsibility Principle says:A class (or method) should have only one reason to change.
In plain English:
A class should do only one thing
A method should do only one action
Keep ...
javalearnings.hashnode.dev3 min read