Python Programming - Inheritance - Discussion

Discussion Forum : Inheritance - General Questions (Q.No. 74)
74.
How can you achieve method overriding in Python using the @property decorator?
By directly using the @property decorator on the overridden method
By using the @override decorator
By using the @implements decorator
Method overriding is not possible using @property
Answer: Option
Explanation:
Method overriding in Python can be achieved by using the @property decorator on the method in the superclass and implementing it in the subclass.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.