Skip to content
Sharp

Language Upgrades · interview question

When can sealing an interface become a design mistake?

Multiple choiceHardchapter-12-curatedpremiumlanguage-upgradessealed-classes
Choose one answer
Answer and explanation

Correct answer

C. When the interface is meant to stay open for plugin or adapter-style extension

Why

If outside modules or future integrations are expected to provide implementations, sealing the type can block legitimate extension. Closed and open parts of the design should be modeled differently.

Test yourself on Language Upgrades

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

Start free test
All Language Upgrades questions →