class Shape: def area(self): pass class Rectangle(Shape): def __init__(self, width, height): self.width = width self.height = height def area(self): return self.width * self.height
rectangle = Rectangle(5, 3) print(rectangle.area()) # Output: 15
15