Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 30)
30.
How can you achieve method overriding in Python without using the super() function?
By using the @override decorator
By explicitly calling the superclass method
Method overriding is not possible without super()
By redefining the method in the subclass with the same name
Answer: Option
Explanation:
Method overriding in Python can be achieved by redefining a method in the subclass with the same name as in the superclass.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.