PrepZone Logo
PrepZone
Back to LLD

LLD · Easy

Design a Shape hierarchy (Circle, Rectangle, Triangle) with area calculation.

LLDSOLID & OOPFresher

Answer preview

The canonical polymorphism example. Tests inheritance vs interface design and the Open/Closed principle.…