Vidyalelo
Python · Q8

Advanced OOP Concepts

Programming · Python · question 8

Q8

What is method overloading in Python?

A.
Using multiple methods with the same name but different parameters
Answer
B.
Using methods with different names but the same parameters
C.
Using methods with the same name and parameters
D.
Using methods with different names and different parameters

Answer: Option A

Solution

Answer: Option A
Solution:
Method overloading involves defining multiple methods with the same name but different parameters.