class Shape {
    void displayShape() {
        System.out.println("This is a shape.");
    }
}
class Rectangle extends Shape {
    void displayRectangle() {
        System.out.println("This is a rectangle.");
    }
}
class Area extends Rectangle {
    int calculateArea(int length, int breadth) {
        return length * breadth;
    }
}
public class MultiInher{
    public static void main(String[] args) {
        Area rect = new Area();
        rect.displayShape();       
        rect.displayRectangle();     

        
        int result = rect.calculateArea(8, 4);
        System.out.println("Area of Rectangle: " + result);
    }
}
