#include
using namespace std;
class Rectangle{
public:
Rectangle(float _length,float _width)
{
length=_length;
width=_width;
}
float getArea()
{
return length*width;
}
float length,width;
};
class Rectangular:public Rectangle{
public:
Rectangular(float l,float w,float h):Rectangle(l,w){
height=h;
}
float GetArea()
{
return height*length*width;
}
private:
float height;
};
void main()
{
Rectangle r1(1,1);
Rectangular r2(1,1,2);
cout<