Question: Write a class definition called Circle that stores an instance variable named radius for the radius of the circle as float. Write the corresponding getter
Write a class definition called Circle that stores an instance variable named radius for the radius of the circle as float. Write the corresponding getter and setter methods (getRadius, setRadius), and a constructor that takes a float parameter for the radius of the circle.
Include both the class declaration and method definitions! Be sure to use appropriate visibility modifiers.
Assume all includes and using namespace std are already in the file. Do not try to make header files.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
