TIME LINE 0:16 Introduction 07:04 Class and Objects 17:54 The _init_ method 24:18 Constructor, Self and Comparing Objects 35:07 Types of Variables 39:48 Types of Methods 51:16 Inner Class 58:23 Inheritance 1:04:59 Constructor in Inheritance 1:13:54 Polymorphism 1:14:48 Duck Typing 1:20:51 Operator Overloading 1:25:11 Method Overloading and Overriding
Having knowledge is different from being able to share it in a clear, concise manner and this is where Navin reddy sir comes in. Luckiest is the one who gets a teacher like you in every subject.
This is genuinely one of the best videos out here for OOPs concept in Python. Everything was taught was sooo freaking well, with real life and examples and code and it's explanation, amazing, great work man!
Man!!!! I never knew I would understand at least the basics of OOP one fine day!! And that day is today... I cannot thank you enough, what a brilliant teacher you are. Your examples are amazing and I am really happy to have watched your videos today. Liked and subscribed. :)
There's something really cool about the fact that the dev community as a whole, just decided to ignore the fact that the acronym for Python Object Oriented Programming is POOP
Thank you, sir. You don't teach stories, you come directly to the point that is actually needed. I learned so much from your Java programming videos. Stay blessed
I had pursued an online course ( worth 8500INR )from one such online coding teaching company and was literally crying because I was unable to understand OOPS at all. I watched this video and let me tell you, I am Very very confident in OOPS. I will also look for some more videos on this channel as and when needed. Thank you, sir. Time needs teachers like you who deliver such content for free. Thanks a lot!!
thanks to you weeks of my hardwork has finally paid off....i didnt got good teachers in college none anyone online explaining all these stuffs in detail..kudos..thankyou very much
I am surprised that I sat through the entire video in one sitting. Can't remember last time I did that! even for a movie. In all honesty, good explanation of the concepts, I am excited to learn more.
the 1st time i saw this i learnt some then i went across many videos and made the concept clear now im again back here. All the topics are discussed here.and now things are crystal clear.
Finally a proper tutorial. For some reason other TH-camrs act like they can explain this topic in 5 minutes. While in reality this is a complex topic especially for beginners. So, in those 5 minute tutorials you might have a bit of a grasp of what you're doing, but you're still clueless when you are on your own. Thanks for the tutorial! It was very informative!
i know people with same kind of knowledge as this instructor, But he has got what it takes to be a good instructor, he knows how to do it right. kudos to the way you teach stuff. hats off guru.
I was struggling to understand OOPs quite for some time, This session gave me clear idea on OOPS ofcourse lot more to learn.. but kudos to Navin. Thankyou so much!!
Hi Navin, I have one doubt with regard to overloading of __str__() method. You said that during the execution of print(), __str__() is called internally. Hence we can overload it to print the exact values of an object's instance variables. But at 1:34:00, object is printed by calling the __str__() explicitly and it does not generate any error whereas at 1:34:10 when object is printed without any call to __str__(), it generates a type error. Why there is no error in the first case? The error in the second case indicates that the call to __str__() must return a string but in the first case, it returns a tuple and still there is no error. Can you please clarify why this is so?
This guy is simply awesome. He explained the topics as clear as crystal and better than many paid tutors. he In such a small video packed amazing treasure of concepts and basics of OOP. Love this guy. completed this video in 3 days. such a pleasant experience. I actually felt nostalgic at the end of the video that its over. Thank You Naveen Bhaiya. I love you and your work is phenomenon.
I written same that that wrote but __init__ method is not getting call automatically . I'm not getting output of __init__ method . Please can u help me
Awesome Video ! 🙏 In Method overloading (1:27:00) , student 1 and student 2 value added so for student comparison it can be like below def __add__(self, other): m1 = self.m1 + self.m2 m2 = other.m1 + other.m2 s3 = Student(m1, m2) return s3
Really wonder man I am very pleasure to watch it. Real time examples make me to understand more Clearly. Thank you so much. Please make more videos on SQL also. 💯✌
Hello, sir you are one of the biggest programmer in the world sir I have just completed your video it is one of best video on the concept of oops. one day you will become big programmer Thank you very much for all of these
you're legend, thank you for the amount of effort! deep understanding comes from practice but you've already put all the deep stuffs so we are already ahead!
Sir, as I always say about you that you are totally awesome. Your videos have so much stuff that a person who did not know anything about coding can also become a legend in coding. Thank you for making such great videos. Thank you very much sir.
this helps me a lot!! I took a paid course on Udemy but couldn't understand OOP! but watching this video really helped me to understand the OOP concepts. CAN"T THANK YOU ENOUGH!
Believe me Sir, I have watched till now 10-12 different YT channels for understanding this topic, but you made it soo much easy for me to understand. TYSM.....
Simple and Very Clear Understanding...Since a long time I was struggling with OOPS concepts but today, it got cleared mostly and I hope I will clear my interview as well for which I'm preparing ;)
I've watched this 2 times because after the first time, I still had some small uncertainties . Now Everything is clear. Much appreciation for you! May my blessings reach your soul.
hey! can you explain to me I try at 17:00 computer.config('p') "&" computer.config(5) both gave the same output as in video then what sense of parameter here??? Please clear this!!!
@@shubham8188 it's simple computer. Config(com1) It's process the object and object store the computer class's in simple it is just call whole computer() class bcoz computer class stored in com1
I havent started watching this but I have a good feeling about this after watching your django for beginners am really grateful that I have found your channel
Hi! Thanks for such a detailed lecture on OOP concepts using python. I found it really useful and wanted to say you thanks for all the efforts you put. Because earlier I got just very abstract level touch of classes but concepts like inheritance, class/static variables, instance variables, Class Methods, Instance Methods, Static Methods, Polymorphism, Duck typing, Operator overloading, Method Overloading techniques in Python and method Overriding. I learned a lot and really wanted to say you thanks for such detailed and in depth lecture which actually was different from others available on TH-cam and was very informative.
This was a great video that puts together all the fundamentals of OOP with python. As a learner I would like to know more about the MRO concept, how to overcome it, etc
I'm looking for React tutorial of this level. Amazing work. This is the first programming related channel that I've subscribed to. Waiting for React tutorial 2019! Melodious respect!
The moment you used the word "Class variable" for Static variable, suddenly it became so clear. I have been reading it from various sources but never understood the concept of static variable till now. Am very begginer in oop concepts. Hoping to learn more here . Thanks
Anil A Yes, you can change the value of class variable using the object, but that won’t change the value of the variable for other objects. As in your example, the wheels of car1 was changed to 5 but that of car2 is still 4 and will be 4 for the class as well as any other object you create.
At 1:38:20, if you are like me and create another method just to test out if you'll get an error or not by typing this: def sum(self,a,b,c): s = a + b + c return s You will find out that it works. The only problem here is that now your first method will stop working. This one: def sum(self,a,b): s = a + b return s It surprised me that it worked and I thought that because I had the latest version of Python that the creators of Python might've changed things, because it was working. But they haven't. The first method doesn't work and gives and error. And only the second method works when you do it. So, don't do it. I got the same error shown at 1:38:45.
Dear , Navin Sir, Thank you So Much.for this Amazing Video .Your Real World Examples are So Good . Animations make this tutorial super helpful .Because Object Oriented Programing is always about real world matters .I wish to thanks all peoples in Telusko team for creating such a High Quality content and Tutorial and all the Very Best .
In operator overloading: def __add__(self,other): s1 = self.m1 + other.m1 s2 = self.m2 + other.m2 s3 = Student(s1,s2) return s3 This one worked well for me!
Excellent video, I sat through the whole video. It was a good idea to create a single video for OOPS and separate the part from the rest of the Python tutorials.
OMG, This video was very helpful. I came from java background, and was confused about the fact that why all methods in Python has "self" inside their parameter, even if we are not passing anything. But, now it is clear to me. Thank you so much :))
Please explain a simple real time example with calssmethod, staticmethod etc,, which really tells the need for classmethod and staticmethod rather than printing some message.
TIME LINE
0:16 Introduction
07:04 Class and Objects
17:54 The _init_ method
24:18 Constructor, Self and Comparing Objects
35:07 Types of Variables
39:48 Types of Methods
51:16 Inner Class
58:23 Inheritance
1:04:59 Constructor in Inheritance
1:13:54 Polymorphism
1:14:48 Duck Typing
1:20:51 Operator Overloading
1:25:11 Method Overloading and Overriding
Can everyone stop pasting these timelines. It's in the description box
@@tankytitan1304the one in the description is referred from the comments dude
Having knowledge is different from being able to share it in a clear, concise manner and this is where Navin reddy sir comes in. Luckiest is the one who gets a teacher like you in every subject.
Kudos to this guy. I would give this guy 1000 likes if i could....
This guy just literally cleared all my doubts regarding OOPS in Python...
@Deep thud Zero.
@Kraken Modern problems. Modern solutions.
@Kraken 1000 sim cards as well.
@@decader4609 😂
Technically if u like 1000 times from one acc it will end up in without a like
Just kidding
"If im a corporation every employee is an object" Deep man, deep.
lmfoa XD
lmfoa 😑
🤣🤣🤣
:)
how about different groups or departments within an organization or corp?
what would they be?
0:16 Introduction
07:04 Class and Objects
17:54 The _init_ method
24:18 Constructor, Self and Comparing Objects
35:07 Types of Variables
39:48 Types of Methods
51:16 Inner Class
58:23 Inheritance
1:04:59 Constructor in Inheritance
1:13:54 Polymorphism
1:14:48 Duck Typing
1:20:51 Operator Overloading
1:25:11 Method Overloading an Overriding
This is genuinely one of the best videos out here for OOPs concept in Python. Everything was taught was sooo freaking well, with real life and examples and code and it's explanation, amazing, great work man!
4 years of Programming and no one taught OOPs concepts so clearly :) Thanks you are a savior
Man!!!! I never knew I would understand at least the basics of OOP one fine day!! And that day is today... I cannot thank you enough, what a brilliant teacher you are. Your examples are amazing and I am really happy to have watched your videos today. Liked and subscribed. :)
and i subbed your channel. noice soothing music, you make :) also, wakanda electric guitar and pedals are you using in John mayer gravity cover?
1:29:52
"This is the horrible way of comparing students with marks..."
You touched my heart.💗
do not like this comment anymore leave it at 69 please
@@enigma2886 Hahahahhaahha
@@enigma2886 it is right now 131
😐
one hundred percent bro❤
There's something really cool about the fact that the dev community as a whole, just decided to ignore the fact that the acronym for Python Object Oriented Programming is POOP
POOP is hard but this video is laxative
I'll bring myself out
17 minutes into the lesson and I''m liking it already. Great stuff!
Thank you, sir. You don't teach stories, you come directly to the point that is actually needed. I learned so much from your Java programming videos. Stay blessed
It couldn't be easy for me to understand Oops without telusko.
Thank You, Navin.
The way you break down concepts into comprehensible pieces is amazing. I'm so grateful for your videos.
You are a natural teacher, so good at explaining things by comparing them real world scenarios. Inspiring work 👍
Thanks!
I had pursued an online course ( worth 8500INR )from one such online coding teaching company and was literally crying because I was unable to understand OOPS at all. I watched this video and let me tell you, I am Very very confident in OOPS. I will also look for some more videos on this channel as and when needed. Thank you, sir. Time needs teachers like you who deliver such content for free. Thanks a lot!!
"literally crying" 🤣
Hmko v sikha dena bro😉
@@manoranjansingh7762 are bhai 😂😂 jrur. Video dekh comments nhi 😂
@@singhrituraj3909 itna pasand aaya ki video dekh liye 3 baar😅
One more advantage of following telusko is he don’t waste ur time by dragging bcz he is clear in concepts and tell quickly
thanks to you weeks of my hardwork has finally paid off....i didnt got good teachers in college none anyone online explaining all these stuffs in detail..kudos..thankyou very much
finally found something that made me understand oop
exactly...
@@YuvrajRaghuvanshiS Yesssssssssssss!!!11
first learn c++ oop
Agree bro
Finally 😄
I don't know , how many times I took lecture related to OOPS but frankly speaking this 2 hours clear my all doubts simply amazing
I am surprised that I sat through the entire video in one sitting. Can't remember last time I did that! even for a movie. In all honesty, good explanation of the concepts, I am excited to learn more.
Haha .. same happened to me...lol
Thank you very much Telusko!!
same here!
Same happened to me too.
Same here with grit and determination and this alien level of teaching , learning is really a lot easier
not the same here
the 1st time i saw this i learnt some
then i went across many videos and made the concept clear
now im again back here. All the topics are discussed here.and now things are crystal clear.
Finally a proper tutorial. For some reason other TH-camrs act like they can explain this topic in 5 minutes. While in reality this is a complex topic especially for beginners. So, in those 5 minute tutorials you might have a bit of a grasp of what you're doing, but you're still clueless when you are on your own. Thanks for the tutorial! It was very informative!
Thank you so much. Coming from JAVA, I just learnt OOPS in Python watching your video. Awesome job!!! A million thanks.
Seriously, programming is useless without your explanations. Never stop doing this! You are the only person who know how to get into people minds!
You are the best teacher I have ever seen. There is no topics which I can't understand with your explanation. Thank you.
class review:
def experience(self):
print('Amazing Fundamentals...Thank you very much')
a = review()
a.experience()
should be "class Review:"
@@sergiokornilov Also, indentation error.
Just checking
how deep
the indentation rabbit hole
o man what a lecture God bless you sir I am watching your lecture in2022.It is super informative.Thankyou very much
Sir, You're awesome. You cleared the concept of oops in simple manner which most of ones don't do.
I could not stop commenting to appreciate you. Really one of the best videos in OOP. Thanks
The only one on internet to whom i can trust! Love from Bangladesh!
i know people with same kind of knowledge as this instructor, But he has got what it takes to be a good instructor, he knows how to do it right. kudos to the way you teach stuff. hats off guru.
I was struggling to understand OOPs quite for some time, This session gave me clear idea on OOPS ofcourse lot more to learn.. but kudos to Navin. Thankyou so much!!
Hi Navin,
I have one doubt with regard to overloading of __str__() method.
You said that during the execution of print(), __str__() is called internally. Hence we can overload it to print the exact values of an object's instance variables. But at 1:34:00, object is printed by calling the __str__() explicitly and it does not generate any error whereas at 1:34:10 when object is printed without any call to __str__(), it generates a type error.
Why there is no error in the first case?
The error in the second case indicates that the call to __str__() must return a string but in the first case, it returns a tuple and still there is no error.
Can you please clarify why this is so?
Great run-through. Simple, clear code examples. Easy to understand.
Would recommend to a friend.
The problem with other youtube tutorials are they dont show you where you can go wrong . you just earned yourself a subscriber. great content
This guy is simply awesome.
He explained the topics as clear as crystal and better than many paid tutors.
he In such a small video packed amazing treasure of concepts and basics of OOP.
Love this guy.
completed this video in 3 days. such a pleasant experience. I actually felt nostalgic at the end of the
video that its over.
Thank You Naveen Bhaiya.
I love you and your work is phenomenon.
I written same that that wrote but __init__ method is not getting call automatically .
I'm not getting output of __init__ method . Please can u help me
Thanks! I come from C++ and I was used to work with OOP, now that I watched this video, I realized that I don't need it that much in Python
Finally got a video that explains that OOP is a way of thinking with the concept behind class and object. Thanks man
Awesome Video !
🙏
In Method overloading (1:27:00) , student 1 and student 2 value added so for student comparison it can be like below
def __add__(self, other):
m1 = self.m1 + self.m2
m2 = other.m1 + other.m2
s3 = Student(m1, m2)
return s3
Amazing content man. I'm a python developer by profession, this video helped me cover the OOPS concepts in python very effectively.
Hi sir I'm a student currently in first year can you please guide me through the path of python developer
I rarely write comments. However., I am grateful I found a video that explained the concept so clearly and digestible for beginners. THANK YOU!
Really wonder man I am very pleasure to watch it. Real time examples make me to understand more Clearly. Thank you so much. Please make more videos on SQL also. 💯✌
Hello,
sir you are one of the biggest programmer in the world
sir I have just completed your video it is one of best video on
the concept of oops.
one day you will become big programmer
Thank you very much for all of these
you're legend, thank you for the amount of effort! deep understanding comes from practice but you've already put all the deep stuffs so we are already ahead!
Man! You just took my OOP knowledge to a different level. Thanks!
Damn He is legend
he speaks 7 languages including python
Seriously....this is the best oops tutorial ever. You made it very easy to understand. Love your work!!!!
Sir, as I always say about you that you are totally awesome. Your videos have so much stuff that a person who did not know anything about coding can also become a legend in coding. Thank you for making such great videos. Thank you very much sir.
It is perfect for beginer like me... Who has no programing background knowledge and is thinking to learn programming .
Thank you sir!!
this helps me a lot!! I took a paid course on Udemy but couldn't understand OOP!
but watching this video really helped me to understand the OOP concepts.
CAN"T THANK YOU ENOUGH!
i have read a lot of books regarding to python but believe me i learned a lot of new things from your videos ,,,you are great sir,,,,,
Dude you make programming more fun than ever. Thank u Navin garu :p
Believe me Sir, I have watched till now 10-12 different YT channels for understanding this topic, but you made it soo much easy for me to understand. TYSM.....
Simple and Very Clear Understanding...Since a long time I was struggling with OOPS concepts but today, it got cleared mostly and I hope I will clear my interview as well for which I'm preparing ;)
dude... this video is crazzzyyyyy, really really grateful for your efforts. thanks dude.
great guy. lots of motives to teach. loved his passion. thanks, and stay blessed
I've watched this 2 times because after the first time, I still had some small uncertainties .
Now Everything is clear.
Much appreciation for you!
May my blessings reach your soul.
hey!
can you explain to me I try at 17:00
computer.config('p') "&" computer.config(5)
both gave the same output as in video then what sense of parameter here???
Please clear this!!!
@@shubham8188 it's simple computer. Config(com1)
It's process the object and object store the computer class's in simple it is just call whole computer() class bcoz computer class stored in com1
i've just completed this course! Great Explanation Sir and thanks a lot!
Best teacher.... I only search for him if I have any problems and after seeing his video my problems is solved
oh lord. I just watched the whole thing in one sitting. Thanks.
I havent started watching this but I have a good feeling about this after watching your django for beginners am really grateful that I have found your channel
Hi! Thanks for such a detailed lecture on OOP concepts using python. I found it really useful and wanted to say you thanks for all the efforts you put. Because earlier I got just very abstract level touch of classes but concepts like inheritance, class/static variables, instance variables, Class Methods, Instance Methods, Static Methods, Polymorphism, Duck typing, Operator overloading, Method Overloading techniques in Python and method Overriding. I learned a lot and really wanted to say you thanks for such detailed and in depth lecture which actually was different from others available on TH-cam and was very informative.
This is the BEST video to learn OOP in Python 🙌
This was a great video that puts together all the fundamentals of OOP with python.
As a learner I would like to know more about the MRO concept, how to overcome it, etc
Good pace. Some tutorials go too fast and others too slow. You don't leave out information and you go at a pace that isn't boring. Great video.
Thank you so much for the clear explanations. Also, amazing how those students' averages we coincidently the same!
yeah it was one in a million chance to get the same averages with 3 random numbers
Great tutorial. Few people explain classes' background as deep as you do.
This was literally very easy to follow and the way you clear why(s) and how(s) is amazing!
the way of teaching and making oops so easy hats off seriously!!
Just two words for the legend "Freaking Awesome" 👌🙏
P Ltd is authorised
🙏 to offer pop o🙏🙏oooo🙏 on posts Home oo
Loved every bit of this tutorial - start to end. Many Thanks.
Just Amazing, Although i knew most of the concepts but your way of explaining is just amazing. Learnt couple of new things
Absolutely incredible. Words cannot describe how great Navin is as a teacher. Than k you so much!
Navin, your explanations on the concept were excellent. Really appreciable
Fast, clear and easy to comprehend. A like no other django course on TH-cam
I'm looking for React tutorial of this level. Amazing work. This is the first programming related channel that I've subscribed to. Waiting for React tutorial 2019!
Melodious respect!
The moment you used the word "Class variable" for Static variable, suddenly it became so clear. I have been reading it from various sources but never understood the concept of static variable till now. Am very begginer in oop concepts. Hoping to learn more here . Thanks
Hi Naveen,
I am able to see the change of class variable while changing using object instead of class. Is this expected?
Code:
class Car:
# Whatever variables defined here are called class variables
wheels = 4
mirrors = 3
def __init__(self):
# Whatever variables defined here are called instance variable
self.company = "Renault"
self.milage = 20
self.gear = "Automatic"
car1 = Car()
car2 = Car()
print(car1.wheels, car1.company, car1.milage, car1.gear)
print(car2.wheels, car2.company, car2.milage, car2.gear)
car1.company = "BMW"
car2.company = "Maruti"
car2.gear = "Manual"
print(car1.wheels, car1.company, car1.milage, car1.gear)
print(car2.wheels, car2.company, car2.milage, car2.gear)
car1.wheels = 5
print(car1.wheels, car1.company, car1.milage, car1.gear)
print(car2.wheels, car2.company, car2.milage, car2.gear)
Output:
(4, 'Renault', 20, 'Automatic')
(4, 'Renault', 20, 'Automatic')
(4, 'BMW', 20, 'Automatic')
(4, 'Maruti', 20, 'Manual')
(5, 'BMW', 20, 'Automatic')
(4, 'Maruti', 20, 'Manual')
Anil A Yes, you can change the value of class variable using the object, but that won’t change the value of the variable for other objects. As in your example, the wheels of car1 was changed to 5 but that of car2 is still 4 and will be 4 for the class as well as any other object you create.
At 1:38:20, if you are like me and create another method just to test out if you'll get an error or not by typing this:
def sum(self,a,b,c):
s = a + b + c
return s
You will find out that it works. The only problem here is that now your first method will stop working. This one:
def sum(self,a,b):
s = a + b
return s
It surprised me that it worked and I thought that because I had the latest version of Python that the creators of Python might've changed things, because it was working. But they haven't. The first method doesn't work and gives and error. And only the second method works when you do it. So, don't do it.
I got the same error shown at 1:38:45.
Dear , Navin Sir, Thank you So Much.for this Amazing Video .Your Real World Examples are So Good . Animations make this tutorial super helpful .Because Object Oriented Programing is always about real world matters .I wish to thanks all peoples in Telusko team for creating such a High Quality content and Tutorial and all the Very Best .
One of my favorite teacher always, thanks Navin sir. God bless you
In operator overloading:
def __add__(self,other):
s1 = self.m1 + other.m1
s2 = self.m2 + other.m2
s3 = Student(s1,s2)
return s3
This one worked well for me!
you're adding m1s and m2s of different students tho.
Amazing course, cleared all doubts.
Thanks
One of the best lectures available on Python OOPs in Hindi on youtube. Thanks You Sir.
Excellent video, I sat through the whole video. It was a good idea to create a single video for OOPS and separate the part from the rest of the Python tutorials.
15 minutes in to the video.
Can't thank you enough. You are the best!
Wow, your explanation is a great use of my time!
I like your explanation that a child class has all the features of its parent classes!
sir ,you are genius i have buy some paid courses but not understanding oops
but after watching your video i learn opps very well
thank you sir 🙏🙏🙏🙏
*Telusko : Makes things simple* ❤
This is a fantastic channel to learn coding.. I've seen python videos and they are really good.
Hello sir plzzz make video on Complete Android Development using Kotlin with lots of Projects.....if possible
OMG, This video was very helpful. I came from java background, and was confused about the fact that why all methods in Python has "self" inside their parameter, even if we are not passing anything. But, now it is clear to me. Thank you so much :))
Please explain a simple real time example with calssmethod, staticmethod etc,, which really tells the need for classmethod and staticmethod rather than printing some message.
The last example of phone for method overriding was top notch clearly understood thank you sir
There is my quiz after 10 hours
Came here for preparation and now I am able to teach the university ..
😂😂😂😂
finally i found a way to understand OOPS........thank you sir..ur work is just awesome
Nice video sir.make a Python mini project sir
DIY
@Tyler Welch I think he must learn python completely first
@@swadhikarc7858 bro can u guide me like..what should I learn after learning python..pls tell me !
Thats how you kill it.....
Thanks a lot Naveen for this video. You really made OOPs easy for me:-)
అంతా మంచి జరుగుగాక
Nice video, so elaborate, do some thing on Django framework