#include <iostream>
using namespace std;
class Base{
protected:
double h;
public:
Base(double h1)
{
h=h1;
}
virtual void disp()=0;
};
class cuboid:public Base{
private:
double wid,len;
public:
cuboid(double l,double w,double h1):Base(h1)
{ len=l;
wid=w;
}
void disp()
{ cout<<"cuboid:"<<endl;
cout<<"extent: "<<len<<endl;
cout<<"width: "<<wid<<endl;
cout<<"height: "<<h<<endl;
cout<<"The bulk of cuboid is : "<<len*wid*h<<endl;
}
};
class Cylinder:public Base{
private:
double r;
public:
Cylinder(double h1,double r1):Bas