πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Python does not support method overloading

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

Explanation by: Mr. Dubey
Python does not support traditional method overloading; the latest definition overrides earlier ones.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
59
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate