Python - 075 : Method Overloading in Python

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • Method Overloading:
    Two or more methods have the same name but different numbers of parameters or different types of parameters, or both. These methods are called overloaded methods and this is called method overloading.
    Like other languages (for example, method overloading in C++) do, python does not support method overloading by default. But there are different ways to achieve method overloading in Python.
    The problem with method overloading in Python is that we may overload the methods but can only use the latest defined method.

ความคิดเห็น • 1

  • @Abhaystomar
    @Abhaystomar 3 หลายเดือนก่อน

    As per i know possible nhi hai method overloadig error show hota hai