<AptiCode/>

Question 514: Consider the following code:class Shape: def area(self): pass class Circle(Shape): def area(self, radius): return 3.14 * radius * radius class Rectangle(Shape): def area(self, length, width): return length * widthWhat is this example illustrating?

tcs
wipro
infosys
general
aptitude
polymorphism
python-programming

This example illustrates method overriding, where a subclass provides a specific implementation for a method that is already defined in its superclass.