SilverhandX

circle.h

May 2nd, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #ifndef CIRCLE_H
  2. #define CIRCLE_H
  3.  
  4. class Circle
  5. {
  6. private:
  7.     double radius;
  8.     double pi;
  9. public:
  10.     Circle() //Default Constructor
  11.     { radius = 1.0; pi = 3.14159; }
  12.  
  13.     Circle(double r) //Constructor which accepts value for radius
  14.     { radius = r; pi = 3.14159; }
  15.  
  16.     void setRadius(double);
  17.    
  18.     double getRadius();
  19.     double getArea();
  20.     double getCircumference();
  21. };
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment