class Circle
Defined at line 10 of file ./include/Circle.h
Circle class derived from Shape.
Represents a circle with a given radius.
Public Methods
void Circle (double radius)
Constructs a new Circle object.
Parameters
radius Radius of the circle.
double area ()
Calculates the area of the circle.
Returns
double The area of the circle.
double perimeter ()
Calculates the perimeter of the circle.
Returns
double The perimeter of the circle.
Code
Circle circle(5.0);
double perimeter = circle.perimeter();