โ† Amazon questions

Class design for drawing shapes with evolving requirements

Filed under Amazon

The question

Design a class hierarchy to draw basic shapes like rectangles and circles, then progressively add requirements to support specializations such as curved edges, skewed edges, and dashed lines for various shapes with extensibility.

No write-up yet. Related questions below have one.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.