A

Admin • 832.52K Points
Coach

Q. In which situation is method overloading possible in Python?

  • (A) By defining multiple methods with same name and different parameters
  • (B) By defining multiple methods with same name and same parameters
  • (C) Python does not support method overloading
  • (D) By using the `@overload` decorator
  • Correct Answer - Option(C)
  • Views: 15
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Python does not support traditional method overloading; the latest definition overrides earlier ones.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.