Question: The following statements have errors. What are they? class Circle { }; private: double radius; public: Circle (double r); ~Circle(); void setRadius (double r)
The following statements have errors. What are they? class Circle { }; private: double radius; public: Circle (double r); ~Circle(); void setRadius (double r) const {radius = r; } double getRaius () const {return radius; } double * getArea () const {return 2 3.14 * x; } H
Step by Step Solution
3.40 Rating (159 Votes )
There are 3 Steps involved in it
There are several errors in the provided code snippet for the Circle class Lets identify and correct ... View full answer
Get step-by-step solutions from verified subject matter experts
