Question: Question 1 : Consider the following class definition: class circle { public void print ( ) const; void setRadius ( double ) ; vold setCenter

Question 1:
Consider the following class definition:
class circle
{
public
void print() const;
void setRadius (double);
vold setCenter(double, double);
vold getCenter(double&, double&);
double getRadius();
double area();
circle();
circle(double, double, double);
private:
double xCoordinate;
double yCoordinate;
};
double radius;
};
class cylinder: public circle
{
public
void print() const;
vold setHelght (double);
double getHelght();
double volume();
double area ();
cylinder ();
cylinder (double, double,
double, double);
private:
double helght;
a. Suppose that you have the declaration:
cylinder newCylinder;
List the private members of the object newCylinder.
 Question 1: Consider the following class definition: class circle { public

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!