โ† PTC questions

Design shape classes with area and perimeter functions

Filed under PTC

The question

Write classes for a generic shape, circle and rectangle to show inheritance, with functions computing area and perimeter.

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

Related PTC questions

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