"My phone overrides my father's phone", Thank you for being such a wonderful teacher and for sharing your knowledge with the world. I'm looking forward to continuing to learn from you!
Navin, this quick-learn course is awesome...I have been in the industry for 34+ years and decided to learn Python. I did not want to go to 3-6-9 month course and was looking for a quick overview. Excellent work. Keep it up. I have been programming since 1984 and have used almost all languages and platforms....OMG - there are so many things to remember to accomplish this smart programming using Python. I hope "Go" is not further difficult to learn....
for method overloading using variable length method class student: def sum(self, a, *b): s = a for e in b: s = s+e return s s1 = student() print(s1.sum(4, 5, 6))
min 5:40 , def sum(self, a=None, b=None, c=None): , i use (self,a=0,b=0,c=0): , and then we dont need to use "if a != None" etc conditions. 3 lines of code instead of 6 =))
As per me, the better option for method overloading would be: class A: def sum(self,*a): c=0 for i in a: c=c+i return c a = A() print(a.sum(10,20,30,40))
Sir I am from humanities background and currently working as a professional Interior Designer. I am 31years old and recently my partner suggested me to have a look into your videos when I told her I want to learn Python. I have no prior knowledge of coding or anything but after seeing and watching your videos I must say I am in love with the way you teach. If I can ever switch my career from being a designer to a developer of coder, I would thank you from the core of my heart. I am learning so much from you. Thank you once again.
Hey Telesko! I love the way you give examples :-)I m 18 years old and I m learning python through your videos /////thank you very much for making this python series:-);-) I love you a lot for teaching me python
Sir instead of assigning None to a , b , c variable in sum method , we can assign it to zero . So that we no need to check the None value of the arguments.
Method overriding also works in same class: class A: def add(self,a,b): return a + b def add(self,a,b,c): return a + b + c A1 = A() print(A1.add(10,20)) --------------------this will give an error print(A1.add(10,20,30))--------------this will give 60------- first definition of add() takes self + two arguments but second definition of add takes self + 3 arguments.. so second definition overrides first definition of first add() method
The only content which is alive. Sir you don't have to worry about uploading videos faster, take your time. I know how much it takes to make a content like this. Thanks for your amazing content. It is very unique and not much complicated.
you are a great teacher Naveen sir thanks for teaching us python for free. i was going to buy a book to learn python but when i started watching your videos i thought that i dont need one
Sir your content is very very good .Although you take some time to post a video but the quality that we get is very good which compensates everything.Sir we can even wait for a year if the content is good so sir take some time and keep on posting such awesome videos on python because you are our only source of knowledge. :)
for the one how dont konw this method class student: def __init__(self,m1,m2): self.m1 = m1 self.m2 = m2 def sum(self,*a): return sum(a) s1 = student(58,69) print(s1.sum(5,6))
Awesome videos sir 👌👌 & it's fun watching your videos while going to office daily. I never get bored & it's really very easy to recall all the concepts the way you explain them. Hats off to you. I loved the example you gave Nokia & Motorola 😃😄 Keep going sir 😄
Good video, but i would not write that func. like that def sum(self, a=None, b=None ... ) What if we have more than 4 variables. I would write that function like this: def sum(self, *args): s = 0 for a in args: s += a return s Thanks again
No Need of if-else statement here, we can acheive this by simply using the ZERO. #method overloading class test: def add(self,a=0,b=0,c=0): s = a + b + c return s marks=test() print(marks.add(1,2)) o/p: 3 #insmot
"My phone overrides my father's phone"
Simply brilliant!
Yes!
That was a very good example.
I will never forget about Method overriding in my life. Thank you:)
Same 😂
Same.🔌😂
same 😁 gr8 teacher
same
same
"My phone overrides my father's phone", Thank you for being such a wonderful teacher and for sharing your knowledge with the world. I'm looking forward to continuing to learn from you!
This guy has answer for any question. Awesome work Navin Reddy...
Navin, this quick-learn course is awesome...I have been in the industry for 34+ years and decided to learn Python. I did not want to go to 3-6-9 month course and was looking for a quick overview. Excellent work. Keep it up. I have been programming since 1984 and have used almost all languages and platforms....OMG - there are so many things to remember to accomplish this smart programming using Python. I hope "Go" is not further difficult to learn....
for method overloading using variable length method
class student:
def sum(self, a, *b):
s = a
for e in b:
s = s+e
return s
s1 = student()
print(s1.sum(4, 5, 6))
The eg.was just remarkable.
The effort u put to make us understand is just insane.
Salute to sir.
min 5:40 , def sum(self, a=None, b=None, c=None): , i use (self,a=0,b=0,c=0): , and then we dont need to use "if a != None" etc conditions. 3 lines of code instead of 6 =))
i Am watching your videos from years, just know your methods are simpler for beginners. and for everyone keep it up.
At 6:15 for method overloading, it would be better to pass 0 than None as we can skip that if condition.
What if you pass strings as arguments
The Way You Explain Every Concept With a Lovely Example Makes Learning Python So Easy. Thanks Navin Sir❤️❤️❤️.
sir very good example you had taken
"i understand the concept perfectly now"
thank u for this
i would have NEVER understood this topic in my university. you made it so simple!!
Awesome class sir... brilliant teaching... I never forget about Method overriding in my life...
🙏
Was unable to understand the concept of Method Overriding. But the way you taught this concept, was amazing. Great job!
instead of (self,a=None,b=None,c=None) we can (self,a=0,b=0,c=0) to avoide conditions
As per me, the better option for method overloading would be:
class A:
def sum(self,*a):
c=0
for i in a:
c=c+i
return c
a = A()
print(a.sum(10,20,30,40))
Overriding example is superb
"Method Overriding " love u sir,u r god
The best example of method overriding.. I will remember it definately
"I was not having a phone.", sounds so Shakespearean.
Sir I am from humanities background and currently working as a professional Interior Designer. I am 31years old and recently my partner suggested me to have a look into your videos when I told her I want to learn Python. I have no prior knowledge of coding or anything but after seeing and watching your videos I must say I am in love with the way you teach. If I can ever switch my career from being a designer to a developer of coder, I would thank you from the core of my heart. I am learning so much from you. Thank you once again.
After 3 years when I am now going for job interviews & tests , still watching your playlist to refresh up, Kudos to you Sir
i think i will not forget this overriding concept . thanks man.
Hey Telesko! I love the way you give examples :-)I m 18 years old and I m learning python through your videos /////thank you very much for making this python series:-);-) I love you a lot for teaching me python
good explanation of method overriding
Another day of thanking God for tutors like you who I owe my engineering degree to.
Sir is world's number 1 teacher. No doubt on this. 🤗🤗
Sir instead of assigning None to a , b , c variable in sum method , we can assign it to zero . So that we no need to check the None value of the arguments.
My point exactly
Or maybe to any number you want🤷🏻♂️
def sum(a=0, b=0, c=0):
I think you want to say this👆
Even i thought that bro.
Sahi Bat hai.
That father son example is just wow 🔥
The father example for method overiding was a brilliant example!!!
This phone example was the best which I got in this topic all over the internet. ✅ ❤️ Explained
awesome sir none of my teachers or google haven't explained this concept like this.... u are simply awesome sir.....
Your are a wolf in the teaching field.
Great explanation. Note: if a != None: s += a; if b != None: s += b; if c != None: s += c; )))
class Student:
def sum(self, *b):
c = 0
for x in b:
c += x
return c
s1 = Student()
print(s1.sum(5, 6, 5, 4))
can we use this for method overloading?
Every one of your videos will have 100k views soon. You rock bro.
Story to explain method overriding is superb❤️
Very nice Explanation ✌️
Thanks sir please daily upload a video 🚴🚴
6:07 you don't need that lengthy code just set default values of a, b, c as 0
Yes
Your explanation is easy to understand for everyone
you made me emotional i remembered my old days
what a explaining sir.....!
who are dislike the
Videos understanding very well and teaching is awesomeeee
That's a great example i never forget overriding and inheritance from now thanks a lot 👍
I am become fan of your phone example with Method Overriding
Such a hardworker you are Sir!
crystal clear explanation for method overriding
Great explanation! Thank you!
Sir you are the best your teaching skill is fantabulous keep it up.
that example clears all of my doubts about over riding topic.
Method overriding also works in same class:
class A:
def add(self,a,b):
return a + b
def add(self,a,b,c):
return a + b + c
A1 = A()
print(A1.add(10,20))
--------------------this will give an error
print(A1.add(10,20,30))--------------this will give 60-------
first definition of add() takes self + two arguments but
second definition of add takes self + 3 arguments.. so second definition overrides first definition of first add() method
your teaching is best sir thank you for such content.😀
The only content which is alive. Sir you don't have to worry about uploading videos faster, take your time. I know how much it takes to make a content like this. Thanks for your amazing content. It is very unique and not much complicated.
it is a very good idea to have tutorial for practices, in which after watching tutorial of the concept we can learn better via practices. thank you
Wooow... U explained the function overriding sooo well😀
you are a great teacher Naveen sir thanks for teaching us python for free. i was going to buy a book to learn python but when i started watching your videos i thought that i dont need one
Really sir your every class is so helpful for me.
Sir your content is very very good .Although you take some time to post a video but the quality that we get is very good which compensates everything.Sir we can even wait for a year if the content is good so sir take some time and keep on posting such awesome videos on python because you are our only source of knowledge. :)
Simply best example of that father mobile 💀
Simple trick
class Miles:
def sum(self,x= 0,y=0,z=0):
sum=x+y+z
print(sum)
r1=Miles()
r1.sum(1,3)
class Miles:
def mul(self,x= 1,y=1,z=1):
mul=x*y*z
print(mul)
r1=Miles()
r1.mul(1,3)
I will never forget method overriding in my life!!
boss really fantastic father and son story.love u
That was such a cool example...got the concept just like that
awesome example clearly understand that over riding guru navin
Enjoying this session very much sir😊😊😊
You are an amazing amazing teacher!
Kudos🤩 , his explanation of standards and quality is awesome ....phone overrides ex is unique & top notch
👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌👌.. Super explanation sir.....
Thank you for your valuable contribution, Sir.
Nice and easy explanation. Thank you so much. :)
for the one how dont konw this method
class student:
def __init__(self,m1,m2):
self.m1 = m1
self.m2 = m2
def sum(self,*a):
return sum(a)
s1 = student(58,69)
print(s1.sum(5,6))
we can put by default zero to sum method instead of none its working fine zero also
Definition of Perfect..!
we ca define sum like below also
def sum(self,a=0,b=0,c=0):
return a+b+c
Thank you Mr. Reddy! I really appreciate it.
Sir, You are really great in teaching.... Thank you😊😊
OMG that was the best example, I've ever heard
Yes default arguments will replace if any arguments missed at position..
Good explanation sir
Op example sir, hats off to you sir ❤💕❤💕❤
This is a one of quality contents of sir ......you are awesome sir
Everyone sees that this video didn't have any dislike s
Clear Explanation❤️
sir you explain in a such nice way!! thank you!!
Awesome videos sir 👌👌 & it's fun watching your videos while going to office daily. I never get bored & it's really very easy to recall all the concepts the way you explain them. Hats off to you. I loved the example you gave Nokia & Motorola 😃😄 Keep going sir 😄
Excellent use of example - easy to understand! Thank you
Sir please make a video series on different modules of Python
class Meth():
def __init__(self,aa,bb,cc):
self.aa=aa
self.bb=bb
self.cc=cc
def add(self,a=0,b=0,c=0):
s=a+b+c
return s
gvn=Meth(3,4,5)
print(gvn.add(10,20))
simpul overloading
I think, its more simple method overloading progrm :
def sum(a=0,b=0,c=0):
s=a+b+c
print(s)
Awesome Example!!
Thanks For The Comment From Telusko's Side
Nice example sir.❤️
very concise
find me a better teacher than him, I will wait.
Thank you sir for this concept very nicely explain
Sir will you please make videos on data structure with python..
kya baaat :) beautifully explained
thank you very much
i understand everything from you
Simply brilliant
Good video, but i would not write that func. like that def sum(self, a=None, b=None ... ) What if we have more than 4 variables. I would write that function like this:
def sum(self, *args):
s = 0
for a in args:
s += a
return s
Thanks again
No Need of if-else statement here, we can acheive this by simply using the ZERO.
#method overloading
class test:
def add(self,a=0,b=0,c=0):
s = a + b + c
return s
marks=test()
print(marks.add(1,2))
o/p: 3
#insmot
Well its a simple and a good example for method overriding and thanks for the python course videos