Method Overloading in Python | Tamil

preview_player
Показать описание
If you want source code please visit my github page.
Рекомендации по теме
Комментарии
Автор

Ur teaching is just mind blowing 😇great work keep doing

subhadreams
Автор

Thank you bro ...Nice Explanation i have one doubt ..

#I want to multiply args how to define here?
class agr:
def fun(self, *args):
sum=0
for i in args:
sum+=i -->#sum*=i?
print("Sum Value:", sum)

arunkumarvsivacholan
Автор

class students:

def fun(self, a=0):
print(a)

def fun(self, a=0, b=0):
print(a+b)

def fun(self, a=0, b=0, c=0):
print(a+b+c)

mark = students()
mark.fun(10)
mark.fun(10, 20)
mark.fun(10, 20, 80)

Bro we can also try this.

o__bean__o
Автор

None use pannama if condition use pannalama Bro?

tamizharasan
Автор

bro this is class and objects la function overloading topic

ajaypragathees
welcome to shbcf.ru