🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Liskov Substitution
  2. B.Open-Closed
  3. C.Dependency Inversion
  4. 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 →