C++
0
Вклад в тег
class Round
{
private:
double _x;
double _y;
double _radius;
public:
Round(double x, double y, double radius)
{
_x = x;
_y = y;
_radius = radius;
}
Round(){}
double GetAbscissa()
{
return _x;
}
double GetOrdinate()
{
return _y;
}
double GetRadius()
{
return _radius;
}
double GetSquare()
{
return M_PI * _radius * _radius;
}
};