1. Declare three classes by transforming the above class diagram.
2. You must declare the following methods in the Circle class.
2.1 inputRadius() method to get a radius of circle side from keyboard and assign the input value to class variable
2.2 setRadius (r:double) method for setting a value to radius of circle
2.3 getRadius () method for getting and returning a value of radius of circle
2.4 circleArea() method to compute the area of circle.
2.5 showCircleArea(area:double) method to show the area of circle on screen as shown in the below expected result.
3. You must declare the following methods in the parallelogram class.
3.1 Create a constructor Parallelogram (b:int, h;int) for setting the initial value of base and height
3.2 getBase() method for getting and returning a value of base of triangle
3.3 getHeight() method for getting and returning a value of height of triangle
3.4 parallelogramArea() method to compute the area of parallelogram.
4. You must declare a class “Shape” that contains the following task,
4.1 Declare main() method.
4.2 Create the Circle object.
4.3 Input the length of radius of the Circle
4.4 Compute the area of the Circle
4.5 Display the area of Circle on screen
4.6 Create the Parallelogram object.
4.7 Initialize the base and height of parallelogram via constructor
4.8 Compute the area of the parallelogram
4.9 Display the area of parallelogram on screen
Remark: Calling the appropriate methods