Q6Single correct3 Marks31 Aug 2025
Consider the following snippet of code:
What will be the output?
```
class Shape:
def __init__(self):
pass
def area(self):
return "Area not defined"
def describe(self):
return f"I am a shape, Area: {self.area()}"
class Rectangle(Shape):
def __init__(self, width, height):
self.width = width
self.height = height
def area(self):
return self.width * self.height
class Circle(Shape):
def __init__(self, radius):
self.radius = radius
r = Rectangle(4, 5)
c = Circle(3)
print(r.describe())
print(c.describe())
```