For this Question: 1. Write a class with the name Circle. The class needs one field (instance variable) with name radius of type double.
The class needs to have one constructor with parameter radius of type double and it needs to initialize the fields.
In case the radius parameter is less than 0 it needs to set the radius field value to 0.

Write the following methods (instance methods):
 * Method named getRadius without any parameters, it needs to return the value of radius field.
 * Method named getArea without any parameters, it needs to return the calculated area (radius * radius * PI). For PI use Math. PI constant.


2. Write a class with the name Cylinder that extends Circle class. The class needs one field (instance variable) with name height of type double.
The class needs to have one constructor with two parameters radius and height both of type double. It needs to call parent constructor and initialize a height field.
In case the height parameter is less than 0 it needs to set the height field value to 0.

Write the following methods (instance methods):
 * Method named getHeight without any parameters, it needs to return the value of height field.
 * Method named getVolume without any parameters, it needs to return the calculated volume. To calculate volume multiply the area with height.

NOTE:
 * All methods should be defined as public NOT public static.
 * In total, you have to write 2 classes.
 * Do not add a main method to the solution code.You don't have to take any input, You have to write two classes <b>Circle</b> and  <b>Cylinder </b>..Output will be printed by tester, "Correct" if your code is perfectly fine otherwise "Wrong".Sample Test Code:
 <code>
    Circle circle = new Circle(2.1);
    if(circle.getRadius() == 2.1)
            System.out.println("Correct");
    else
           System.out.println("Wrong");
</code>

Sample Output:
Correct, I have written this Solution Code: class Circle():
    def __init__(self,radius):
        if radius<0:
            self.radius=0
        else:
            self.radius=radius
    def getRadius(self):
        return self.radius
    def getArea(self):
        return 3.14*self.radius*self.radius

class Cylinder(Circle):
    height=0
    def __init__(self, radius,height):
        super().__init__(radius)
        if height<0:
            self.height=0
        else:
            self.height=height
    def getHeight(self):
        return self.height
    def getVolume(self):
        return super().getArea()*self.height, In this Programming Language: Python, Now tell me if this Code is compilable or not?