Python Programming - Polymorphism - Discussion

Discussion Forum : Polymorphism - General Questions (Q.No. 77)
77.
Which of the following is an example of polymorphism through "function overriding"?
Defining a function with the same name but different parameters in a module
Defining a function with different access modifiers in a module
Defining a function with the same name in a module
Defining a function with the same name but different return types in a module
Answer: Option
Explanation:
Polymorphism through function overriding in Python involves defining a function with the same name in a module, where a subclass provides a specific implementation for the function.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.