public:
rectangle(){lenght=0;widht=0;height=0;};
void seta(int lenghti);
void setb(int widthi);
void setc(int heighti);
int getlenght();
int getwidth();
int getheight();
};
class box:protected rectangle
{
private:
int length,width,height;
public:
rectangle(){length=0;width=0;height=0;};
void setlenght(int lenght);
void setwidth(int width);
void setheight(int height);
int getlenght();
int getwidht();
int getArea();
int getPerimeter();
int getVolume();
};
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.