class Shape {
    protected double area;
    public Shape() {
        super();
    }
    public double getArea() {
        return 0;
    }
}

class Rectangle extends Shape {
    private double width, height;
    public Rectangle(double width, double height) {
        super();
        this.width = width;
        this.height = height;
    }
    public double getArea() {
        return width * height;
    }
}

class Circle extends Shape {
    private double radius;
    public Circle(double radius) {
        super();
        this.radius = radius;
    }
    public double getArea() {
        return Math.PI * radius * radius;
    }
}

public class ShapeAreaTest {
    public static void main(String args[]) {
        Shape obj1 = new Rectangle(10.0, 20.0);
        Shape obj2 = new Circle(10.0);

        System.out.println("Rectangle: " + obj1.getArea());
        System.out.println("Circle: " + obj2.getArea());
    }
}