← Quiz: SOLID Principles: all 10 questions
Quiz: SOLID Principles · Question 10 of 10
A student writes eight interfaces and a factory for a 40-line script used once. Which idea warns against this?
A student writes eight interfaces and a factory for a 40-line script used once. Which idea warns against this?
- A.Liskov Substitution
- B.Open-Closed
- C.Dependency Inversion
- D.YAGNI and KISS
Answer & explanation
Correct answer: YAGNI and KISS
Abstractions have a cost; add them where change is actually expected.
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 →