Question: Question 1 : Consider the following class definition: class circle { public void print ( ) const; void setRadius ( double ) ; vold setCenter
Question :
Consider the following class definition:
class circle
public
void print const;
void setRadius double;
vold setCenterdouble double;
vold getCenterdouble& double&;
double getRadius;
double area;
circle;
circledouble 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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
