Don't forget to SMASH that LIKE button and DROP a random COMMENT down below for the YT algorithm 🙏 also here's the code from the video... class Animal: alive = True def eat(self): print("This animal is eating") def sleep(self): print("This animal is sleeping") class Rabbit(Animal): def run(self): print("This rabbit is running") class Fish(Animal): def swim(self): print("This fish is swimming") class Hawk(Animal): def fly(self): print("This hawk is flying") rabbit = Rabbit() fish = Fish() hawk = Hawk() print(rabbit.alive) fish.eat() hawk.sleep() rabbit.run() fish.swim() hawk.fly()
i watched like 3 videos read 2 books about inheritance listened 1 lecture and learnt nothing. then you came up with 7 minute video and just put knowledge in my brain
Whoa, how on earth can you make me understand inheritance in a 7-minute video but my class of 7 lecture videos couldn't?! lol Good-looking Bro, I always refer to you for learning and in a rut in school during my Python phase. Now we're moving into Phase 2 with Django and Full Dev Stack stuff!
Going to school for Cyber Security Management and taking a program class! Professor put this video in resources. I will def save and come back! Thank you for explaining this!
Don't forget to SMASH that LIKE button and
DROP a random COMMENT down below for the YT algorithm
🙏
also here's the code from the video...
class Animal:
alive = True
def eat(self):
print("This animal is eating")
def sleep(self):
print("This animal is sleeping")
class Rabbit(Animal):
def run(self):
print("This rabbit is running")
class Fish(Animal):
def swim(self):
print("This fish is swimming")
class Hawk(Animal):
def fly(self):
print("This hawk is flying")
rabbit = Rabbit()
fish = Fish()
hawk = Hawk()
print(rabbit.alive)
fish.eat()
hawk.sleep()
rabbit.run()
fish.swim()
hawk.fly()
Is this info available in the full phyton course?
i watched like 3 videos read 2 books about inheritance listened 1 lecture and learnt nothing. then you came up with 7 minute video and just put knowledge in my brain
Same for me. I watched python for everybody and didn't learn shit. And this just explained it well. 😂
Very true, tthis channel simplifies concepts I spent hours learning with no joy
You have no idea how well you just described this. Thank you, much needed.
This is the best programming series I have ever seen. You have a great gift for teaching.
Whoa, how on earth can you make me understand inheritance in a 7-minute video but my class of 7 lecture videos couldn't?! lol Good-looking Bro, I always refer to you for learning and in a rut in school during my Python phase. Now we're moving into Phase 2 with Django and Full Dev Stack stuff!
Extremely easy and useful tutorial. I am studying django and a lot of things are just making sense now! Great Content!
what you do is not teaching, it's more like magic you rock!
Great Explanations Sir
this is the only tutorial that has actually made me understand class inheritance. thank you so much! subscribed 👓
I have subscribed, smashed the like button and leaving this in the comment)
Great explanation
Amazing tutorial 👍❤
💛💛💛
My head was exploding figuring out this whole inheritance problem, thank you so much for being a big brother and saving me.!😭😭
Nice 👍
Great tutorial. Enjoy it very much.
Good vid
Thank you! A teacher learning python and this is a great example
Best tutorials 🔥🔥🔥🔥
Easily and clearly explained. Thanks :)
This is more useful than the semester worth classes.
Best explanation ever❤
Keep going o😎😎😎😎
it is good it is very good
Thanks for explaining things in an easy way. Very helpful. Liked and Subscribed
This man is a natural teacher
Bro, you're the best programming mentor on earth
Love you
Going to school for Cyber Security Management and taking a program class! Professor put this video in resources. I will def save and come back! Thank you for explaining this!
Bro Lovely 🎉🎉🎉
Helpful
wow this is so helpful. amazing ability to describe
Easy, simple and pratic
Thanks bro
you are the best bro!!! I was in serious trouble. You made my day!! Blessings!
U r awesome
vc é o brabo, Brasil aqui!!
Smashed 👍🏽and Subscribed ✍🏽 I was going to give up. You broke it down perfectly . Thank you. I'm so grateful.
Awesome video. And also commenting for the algorithm.
Very well explained. Thanks ❤
great videoooooo
Nice video
I saw 44 seconds and instant thumb up. Im gonna suscribe.
lovely vid broooooooooooo
Yes I liked the video
Thank you so much for the wonderful explanation
That was actually helpful, thanks!
nice video
amazing videos as always!! thank you so much
After watching your opp video i understand the Opp concept
same here
very well explained
Very helpful i understood immediately
super nice
simple explanation, keep it bro
inheritance seems very helpful
Awesome thank you
Great
bro code is the TRUE BRO 🙌🙌
Excellent Bro
great! explanation
Bro Code is King 👑 of Teaching Programming 👑
That's awesome
Bro you are awesome
I like the concept you taught thanks 🙏
i was so confused about this topic but now i understand better , thank you !!
Uhlalaphi sisi mhlawumbe singancedana
Great Vid!!
Amazing bro
I think I found my favorite python channel
Thanks for the video Bro
very good
I like the teaching method
i hope you are making lots of money through advertisements, cos you are helping us computing students a lot!!
Well explained!
awesome
amazing
Short, brief and to the point.
nice
Thanks for the content.
yep defenitly helped thnx rlly man u help a lot of pple
🎉🎉🎉🎉
Awesome
thank you for this awesome tutorial bro code!
Perfect
that was NICEE
Nice, thanks. So we would only initialise if we wanted to list attributes, but because we were focused on methods we didn't have to?
nice job.
thanks for super easy explanation bro!
The best lesson ever and you got all the 3 things (like, comment, and Sub)!
Also thank you for all your work
-thank you for this clear explanation!
This series is super duper good :3
neat as fish+duck!
This was extremely helpful, thank you
Very clear, very helpfull. Thank you.
You describe this so well
Comment for the algo. Good video, man.
Appreciate you bro
nice!
U r way too underrated ty bto
The best way to explain😂
❤
Wow!
❤