Python, Oop, Programming, Technology, Software Development.
a subclass provides a specific implementation of a method that is already defined in its superclass. 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 class