#include <iostream>
using namespace std;
const double PI=3.14159;
class Table
{
private:
	double X,Y;
public:
	void showTable();
	Table(double x,double y);
};
void Table::showTable()
{
	cout<<"("<<X<<","<<Y<<")"<<endl;
}
Table::Table(double x,double y)
{
	X=x;
	Y=y;
}
class Rectangle:public Table
{
private:
	double width,height,area;
public:
	Rectangle(double w,double h,double x,double y):Table(x,y)
	{
		width=w;
		height=h;
		Area();
	}
	void Area();
	void ShowArea();
};
void Rectangle::Area()
{
	area=width*height;
}
void Rectangle::ShowArea()
{
	cout<<"Rectangle Area="<<area<<endl;
}
class Circle:public Table
{
private:
	double radius,area;
public:
	Circle(double r,double x,double y):Table(x,y)
	{
		radius=r;
		Area();
	}
	void Area();
	void ShowArea();
};
void Circle::Area()
{
	area=PI*radius*radius;
}
void Circle::ShowArea()
{
	cout<<"Circle Area="<<area<<endl;
}
int main()
{
	Rectangle r(10,20,0,0);
	Circle c(3,4,5);
	r.ShowArea();
	c.ShowArea();
	return 0;
}