← Quiz: SOLID in Java: all 10 questions
Quiz: SOLID in Java · Question 1 of 10
In the original ResultService.publish(), how many different reasons to change did the class have?
In the original ResultService.publish(), how many different reasons to change did the class have?
- A.One — it only publishes results
- B.Two — calculation and saving
- C.Four — grading rules, output format, storage and notification channel
- D.None, because it is a single method
Answer & explanation
Correct answer: Four — grading rules, output format, storage and notification channel
Each of those can change independently, and every change touches the same method.
Can you get the rest right without peeking?
Take the timed Quiz: SOLID in Java quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →