Question: What does the Single Responsibility Principle ( SRP ) advocate in software design? A class should only have one reason to change. A class should
What does the Single Responsibility Principle SRP advocate in software design?
A class should only have one reason to change.
A class should be open for extension but closed for modification.
Objects in a program should be replaceable with instances of their subtypes without altering the correctness of the program.
A class should depend on abstractions rather than concrete implementations.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
