Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef CIRCLEH_H_INCLUDED
- #define CIRCLEH_H_INCLUDED
- #include <math.h>
- #include <iostream>
- #include <string>
- using namespace std;
- class Circle{
- public:
- Circle( double centerY, double centerX, double Radius)
- {
- _centerX = centerX;
- _centerY = centerY;
- _radius = Radius;
- _area = pow(Radius,2)*M_PI;
- }
- double GetArea()
- {
- return _area;
- }
- protected:
- double _centerX, _centerY, _radius, _area;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement