Skip to content
Sharp

Software Architecture · interview question

In an e-commerce platform, a developer creates a complex inheritance hierarchy to manage product types and their properties. What design principle might they be violating?

Multiple choiceMediumchapter-13-curatedpremiumsoftware-architecturepattern-abuse
Choose one answer
Answer and explanation

Correct answer

A. YAGNI (You Aren't Gonna Need It)

Why

The YAGNI principle suggests not implementing features until they are necessary. Creating a complex inheritance hierarchy when simpler solutions could suffice may result in over-engineering and violate this principle.

Test yourself on Software Architecture

A free test with instant, explained results. No account needed.

Start free test
All Software Architecture questions →