Question: 1. Create a class Shape which performs the following. a. Provide a method area Circle which takes one parameter radius as double, calculates 03 Marks

1. Create a class Shape which performs the following. a. Provide a method area Circle which takes one parameter radius as double, calculates 03 Marks and returns the area of the circle as double. [Formula: Area=tr] b. Provide a method circum Circle which takes one parameter radius as double, calculates and returns the circumference of the circle as double. [Formula: 03 Marks Circumference=21r] c. Provide a method sphereSurfaceArea, which takes one parameter radius as double, calculates and returns the surface area of the sphere as double. [Formula: Surface 03 Marks Area=4ttr'] d. Provide a method sphere Volume which takes one parameter radius as double, calculates and returns the volume of the sphere as double. [Formula: 03 Marks Volume=4/31tr"]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
