Single Responsibility Principle restricts a class to have only one responsibility/implementation. This makes code more readable and easy to maintain.
Think about it as using modularity or use of microservice.
IDEA: Idea is to create different classes for different implementations.
🔗Full Course:
Website: https://thinkxacademy.com/Object%20Or...
Download Android App: (Notes+Videos): https://play.google.com/store/apps/de...
🌐Join our community:
Facebook: / thinkxacademy
Twitter: / thinkxacademy
Instagram: / thinkxacademy