Question: Write the definition of a class Circle containing: A data member radius of type double. A member function called setRadius that accepts a parameter and

 Write the definition of a class Circle containing: A data member

Write the definition of a class Circle containing: A data member radius of type double. A member function called setRadius that accepts a parameter and assigns it to radius. The function returns no value. A member function called getRadius that accepts no parameters and returns the value of radius. A member function called getArea that accepts no parameters and returns the area of the circle. A member function called getPerimeter that accepts no parameters and returns the perimeter (circumference) of the circle. Notes: The area of a circle with radius R is: The circumference of a circle with radius R is: 3.14 x R XR 2 * 3.14 R Write the definition of a class Circle containing: A data member radius of type double. A member function called setRadius that accepts a parameter and assigns it to radius. The function returns no value. A member function called getRadius that accepts no parameters and returns the value of radius. A member function called getArea that accepts no parameters and returns the area of the circle. A member function called getPerimeter that accepts no parameters and returns the perimeter (circumference) of the circle. Notes: The area of a circle with radius R is: The circumference of a circle with radius R is: 3.14 x R XR 2 * 3.14 R

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!