← Quiz: SOLID Principles: all 10 questions
Quiz: SOLID Principles · Question 1 of 10
Which principle says "a class should have only one reason to change"?
Which principle says "a class should have only one reason to change"?
- A.Single Responsibility
- B.Open/Closed
- C.Liskov Substitution
- D.Dependency Inversion
Answer & explanation
Correct answer: Single Responsibility
One class, one responsibility, one reason to change.
Can you get the rest right without peeking?
Take the timed Quiz: SOLID Principles quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →