class Shape
Description
Provides a common interface for different types of shapes.
Defined on line 8 at Shape.h
Public Methods
virtual double area() const = 0
brief
Calculates the area of the shape.
return
double The area of the shape.
virtual double perimeter() const = 0
brief
Calculates the perimeter of the shape.
return
double The perimeter of the shape.
Abstract base class for shapes.