class Shape

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.