class Shape

Defined at line 8 of file ./include/Shape.h

Abstract base class for shapes.

Provides a common interface for different types of shapes.

Public Methods

double area ()

Calculates the area of the shape.

Returns

double The area of the shape.

double perimeter ()

Calculates the perimeter of the shape.

Returns

double The perimeter of the shape.

void ~Shape ()

Virtual destructor.

Defined at line 13 of file ./include/Shape.h