Consider the following class definition:
class circle
class cylinder: public circle
{
{
public:
public:
void print() const;
void print() const;
void setRadius(double);
void setHeight(double);
void setCenter(double, double);
double getHeight();
void getCenter(double&, double&);
double volume();
double
getRadius();
double area();
double area();
circle();
cylinder();
circle(double, double, double);
cylinder(double, double,
double, double);
private:
private:
double xCoordinate;
double height;
double yCoordinate;
}
double radius;
}
Suppose that you have the declaration:
cylinder newCylinder;...