i

Python Programming

Overriding Methods

We can always override parent class methods. Reason overriding parent's methods is because you may want special, different functionality in subclass.

Example

Live Demo

Output

Calling the child method