Write a class namedSphereand include private member attributeradius, member functionssetRadius()andgetRadius()that can be used to set and view the radius. Further include...

Write a class namedSphereand include private member attributeradius, member
functionssetRadius()andgetRadius()that can be used to set and view the radius.
Further include functionsgetArea()andgetVolume()to return the area and the volume
of a sphere respectively. Comprise the declaration in a complete working program. You
may use pi = 3.14

May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here