class Shape
                    
                

Description

brief

Abstract base class for shapes.

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.

            
virtual void ~Shape()
            
        

brief

Virtual destructor.

Defined on line 19 at Shape.h

Enumerations

            
enum Test
            
        
Name Value
A 0
B 1
C 2
Defined on line 10 at Shape.h