Python, Oop, Programming, Technology, Software Development.
Circle(Shape): def __init__(self, radius): self.radius = radius def area(self): return 3.14 * self.radius * self.radius shapes = [Rectangle(3, 4), Circle(5)] for shape in shapes: print(shape.area()) Benefits of OOP OOP offers several benefits that make it a popular choice for software development: