Question: QUESTION 7 Given: class circle { public: void print() const; void setRadius(double); void setCenter(double, double); private: double xCoordinate; double yCoordinate; }; class cylinder: public circle

 QUESTION 7 Given: class circle \{ public: void print() const; void

QUESTION 7 Given: class circle \{ public: void print() const; void setRadius(double); void setCenter(double, double); private: double xCoordinate; double yCoordinate; \}; class cylinder: public circle \{ public: void print() const; double volume(); private: double height; ;; cylinder newCylinder, What are the private members of newCylinder? height height xCoordinate yCoordinate xCoordinate yCoordinate newCylinder has no private members because it is declared using the public access modifier

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!