Answer the questions A–D about the following declaration of class Circle: *A. Declare and create a variable of type Circle called innerCircle. B. Write a statement using the setRadius method to change...



Answer the questions A–D about the following declaration of class Circle:


*A. Declare and create a variable of type Circle called innerCircle.


B. Write a statement using the setRadius method to change the value of


innerCircle’s data member, radius to 10.0.


*C. Write a statement using the getRadius method to output the value of


innerCircle’s data member, radius, preceded by the phrase "The


value of radius is ".


D. Write a statement using the computeCircumference method to output


the value of innerCircle’s circumference, preceded by the phrase


"The value of the circumference is ".



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here