v Single Responsibility Principle (SRP) states that a class should have only one responsibility.
v Or a class should have only one reason to change.
v Single Responsibility Principle (SRP)
states that a class should have only one
responsibility.
v Or a class should have only one
reason to
change.
v When a class has only one responsibility,
it becomes easier to change and test. If a class has multiple responsibilities,
changing one responsibility may impact others and more testing efforts will be
required then.
Tags:
SOLID Principle