#include<iostream>
#include<string>
using namespace std;
class Shape
{
public:
Shape(doublex=0,double y=0,double h=0);
voidsetShape(double,double,double);
virtualdouble area()const=0;
protected:
doublex,y,h;
};
Shape::Shape(double a,double b,double c)
{
x=a;y=b;h=c;
}
void Shape::setShape(double a,doubleb,double c)
{
x=a;y=b;h=c;
}
class Circle:public Shape
{
public:
Circle(doublea=0){x=a;};
virtualdouble area()const
{
return3.14159*x*x;
};
};
class Square:public Shape