Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CIRCLE_H
- #define CIRCLE_H
- class Circle
- {
- private:
- double radius;
- double pi;
- public:
- Circle() //Default Constructor
- { radius = 1.0; pi = 3.14159; }
- Circle(double r) //Constructor which accepts value for radius
- { radius = r; pi = 3.14159; }
- void setRadius(double);
- double getRadius();
- double getArea();
- double getCircumference();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment