1. Write a Java Program which creates a classCustomer Having the following members i) Default and parameterized constructors to initialize the radius ii) Default and parameterized constructors to initialize the radius iii) Member function-putArea() to print area of Circle iv)Member Function-circumference() to calculate and print its circumference Create a class Sphere that inherits from Circle and has its own method to display the volume of the sphere. Create a Demo class to test the aboveclasses.
View All Comments
| View Tutorial