Python inheritance 👪

  Рет қаралды 76,738

Bro Code

Bro Code

3 жыл бұрын

Python inheritance tutorial example explained
#python #inheritance #tutorial
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()
music credits 🎼 :
===========================================================
Up In My Jam (All Of A Sudden) by - Kubbi / kubbi
Creative Commons - Attribution-ShareAlike 3.0 Unported- CC BY-SA 3.0
Free Download / Stream: bit.ly/2JnDfCE
Music promoted by Audio Library • Up In My Jam (All Of A...
===========================================================

Пікірлер: 181
@BroCodez
@BroCodez 3 жыл бұрын
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()
@user-he9ps4ns2z
@user-he9ps4ns2z 5 ай бұрын
Is this info available in the full phyton course?
@cameron7957
@cameron7957 2 жыл бұрын
You have no idea how well you just described this. Thank you, much needed.
@incognito3923
@incognito3923 2 жыл бұрын
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
@medooo80
@medooo80 Жыл бұрын
Same for me. I watched python for everybody and didn't learn shit. And this just explained it well. 😂
@ronbelanger8812
@ronbelanger8812 2 жыл бұрын
This is the best programming series I have ever seen. You have a great gift for teaching.
@DucTaZenSurfer
@DucTaZenSurfer 2 жыл бұрын
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!
@thalesaragao8634
@thalesaragao8634 2 жыл бұрын
Extremely easy and useful tutorial. I am studying django and a lot of things are just making sense now! Great Content!
@cameronestrada1430
@cameronestrada1430 Жыл бұрын
this is the only tutorial that has actually made me understand class inheritance. thank you so much! subscribed 👓
@hari3658
@hari3658 Жыл бұрын
My head was exploding figuring out this whole inheritance problem, thank you so much for being a big brother and saving me.!😭😭
@user-bj9nb7su4j
@user-bj9nb7su4j 5 ай бұрын
Great tutorial. Enjoy it very much.
@elimoshebogomilsky4592
@elimoshebogomilsky4592 Жыл бұрын
wow this is so helpful. amazing ability to describe
@artyomashigov384
@artyomashigov384 4 ай бұрын
I have subscribed, smashed the like button and leaving this in the comment) Great explanation
@utkarshpateriya1564
@utkarshpateriya1564 6 ай бұрын
Thanks for explaining things in an easy way. Very helpful. Liked and Subscribed
@snoopy962
@snoopy962 4 ай бұрын
Easily and clearly explained. Thanks :)
@shamaeelahmed3561
@shamaeelahmed3561 2 жыл бұрын
Bro, you're the best programming mentor on earth Love you
@bobthebuilder5434
@bobthebuilder5434 Жыл бұрын
Actually so good. You explained it in such simple words.
@lotfiaouanouk1292
@lotfiaouanouk1292 3 жыл бұрын
great! explanation
@visionlanguages1999
@visionlanguages1999 4 ай бұрын
you are the best bro!!! I was in serious trouble. You made my day!! Blessings!
@aydinakbuga
@aydinakbuga Жыл бұрын
Easy, simple and pratic Thanks bro
@ameetfaisal8723
@ameetfaisal8723 Жыл бұрын
Awesome video. And also commenting for the algorithm.
@DROR19801
@DROR19801 Жыл бұрын
thank you for this awesome tutorial bro code!
@lahengsiri4686
@lahengsiri4686 2 жыл бұрын
Very clear, very helpfull. Thank you.
@samisado6331
@samisado6331 6 ай бұрын
Thank you so much for the wonderful explanation
@gregoriolobato3033
@gregoriolobato3033 11 ай бұрын
I saw 44 seconds and instant thumb up. Im gonna suscribe.
@isabellesteinhauslin650
@isabellesteinhauslin650 5 ай бұрын
-thank you for this clear explanation!
@alsal1002
@alsal1002 Жыл бұрын
Great Vid!!
@kelvinneiva6635
@kelvinneiva6635 11 ай бұрын
vc é o brabo, Brasil aqui!!
@marcelobour
@marcelobour Жыл бұрын
neat as fish+duck!
@trshkohamirza1621
@trshkohamirza1621 10 күн бұрын
Awesome thank you
@centralcodingethiopia
@centralcodingethiopia Жыл бұрын
Short, brief and to the point.
@e-commerceassist4891
@e-commerceassist4891 Жыл бұрын
I like the concept you taught thanks 🙏
@sirdave48
@sirdave48 6 ай бұрын
Well explained!
@cristiucvladimir7909
@cristiucvladimir7909 2 ай бұрын
Thanks for the content.
@tara2337
@tara2337 3 ай бұрын
what you do is not teaching, it's more like magic you rock!
@davehug
@davehug 2 жыл бұрын
Also thank you for all your work
@sarakopser6596
@sarakopser6596 8 ай бұрын
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!
@mrrelaxingsounds6894
@mrrelaxingsounds6894 11 ай бұрын
lovely vid broooooooooooo
@rethikkrishna777
@rethikkrishna777 Ай бұрын
Bro you are awesome
@gagandwaz1158
@gagandwaz1158 Жыл бұрын
Awesome! Thanks
@jackkuelmazierlham
@jackkuelmazierlham 5 ай бұрын
simple explanation, keep it bro
@PotatoNachoIT
@PotatoNachoIT 10 ай бұрын
yep defenitly helped thnx rlly man u help a lot of pple
@techlace1195
@techlace1195 Жыл бұрын
thanks for super easy explanation bro!
@lw9954
@lw9954 Жыл бұрын
Thanks for the video Bro
@raidenx_knights1026
@raidenx_knights1026 4 ай бұрын
This was extremely helpful, thank you
@fynzer5421
@fynzer5421 2 жыл бұрын
very well explained
@gustavoaponte1814
@gustavoaponte1814 Жыл бұрын
This series is super duper good :3
@ninjastar4187
@ninjastar4187 Жыл бұрын
Smashed 👍🏽and Subscribed ✍🏽 I was going to give up. You broke it down perfectly . Thank you. I'm so grateful.
@enochcrosby6630
@enochcrosby6630 2 жыл бұрын
Comment for the algo. Good video, man.
@knownrobloxian3381
@knownrobloxian3381 2 жыл бұрын
inheritance seems very helpful
@user-so1dh8et2l
@user-so1dh8et2l Жыл бұрын
Helpful
@legitimatepsychiatricemerg1363
@legitimatepsychiatricemerg1363 Жыл бұрын
super nice
@keemorg3997
@keemorg3997 10 ай бұрын
Thanks Bro Code!
@kamkam9600
@kamkam9600 8 ай бұрын
Good vid
@nerdyberi
@nerdyberi 4 ай бұрын
Very helpful i understood immediately
@melanoberidze4995
@melanoberidze4995 4 ай бұрын
great videoooooo
@anikaitpratihary1222
@anikaitpratihary1222 8 ай бұрын
Bro Lovely 🎉🎉🎉
@Pradeepmalagi
@Pradeepmalagi 2 жыл бұрын
Helpful !
@BruteStinky
@BruteStinky 8 ай бұрын
awesome
@kemann3815
@kemann3815 2 жыл бұрын
Great
@Inte8ranD
@Inte8ranD 10 ай бұрын
Thank you, @Bro Code
@bekturasanbekov1979
@bekturasanbekov1979 Жыл бұрын
thx 4 vid bro !
@user-ip1fv3qy2w
@user-ip1fv3qy2w 2 ай бұрын
You describe this so well
@juancharlie777
@juancharlie777 4 ай бұрын
Appreciate you bro
@piotrkopcewicz5227
@piotrkopcewicz5227 Жыл бұрын
it is good it is very good
@kianooshezzatpanah958
@kianooshezzatpanah958 9 ай бұрын
that was NICEE
@bekhacker
@bekhacker 11 ай бұрын
Best explanation ever❤
@huntercraft5674
@huntercraft5674 Жыл бұрын
nice!
@09deekshith
@09deekshith 8 ай бұрын
Best tutorials 🔥🔥🔥🔥
@shortbynaveen
@shortbynaveen 9 ай бұрын
Amazing bro
@jesuisravi
@jesuisravi 2 жыл бұрын
nice job.
@Budu_Alexandru214
@Budu_Alexandru214 11 ай бұрын
Nice video
@imadiman528
@imadiman528 11 ай бұрын
That's awesome
@yiorgoskatopodis
@yiorgoskatopodis 2 жыл бұрын
Excellent Bro
@hiiexisthiiexist1284
@hiiexisthiiexist1284 Жыл бұрын
nice video
@beingzero7541
@beingzero7541 2 жыл бұрын
Wow!
@mervesafak1508
@mervesafak1508 5 ай бұрын
Perfect
@XdCassy
@XdCassy Жыл бұрын
U r way too underrated ty bto
@igordjokic
@igordjokic 11 ай бұрын
Thank You so much!
@philippseis6893
@philippseis6893 7 ай бұрын
Perfect, thanks
@Pursite
@Pursite 6 ай бұрын
nice
@talhaomair1455
@talhaomair1455 7 ай бұрын
This is more useful than the semester worth classes.
@xolelwamabutya-fn2xb
@xolelwamabutya-fn2xb 10 ай бұрын
i was so confused about this topic but now i understand better , thank you !!
@zamanincube1368
@zamanincube1368 2 ай бұрын
Uhlalaphi sisi mhlawumbe singancedana
@omarosman5915
@omarosman5915 4 ай бұрын
bro code is the TRUE BRO 🙌🙌
@Mex_Music
@Mex_Music 4 ай бұрын
Thanks!
@aisyjeff95
@aisyjeff95 2 жыл бұрын
amazing
@user-ye2mt5xy7f
@user-ye2mt5xy7f 7 ай бұрын
I like the teaching method
@netomusic_br
@netomusic_br 2 жыл бұрын
Awesome
@divinityinversace
@divinityinversace 11 ай бұрын
this is so good
@HannaBerhanu-dj4kz
@HannaBerhanu-dj4kz Ай бұрын
The best lesson ever and you got all the 3 things (like, comment, and Sub)!
@davidserrano134
@davidserrano134 Жыл бұрын
I think I found my favorite python channel
@usatheesh7779
@usatheesh7779 Ай бұрын
thank you
@tarikyassa1076
@tarikyassa1076 3 жыл бұрын
Thanks bro!
@badhonbiswas3751
@badhonbiswas3751 3 жыл бұрын
After watching your opp video i understand the Opp concept
@lotfiaouanouk1292
@lotfiaouanouk1292 3 жыл бұрын
same here
@user-dj7ic1xs2p
@user-dj7ic1xs2p 11 ай бұрын
I love your coding vids
@user-qq8yu6im8e
@user-qq8yu6im8e 7 ай бұрын
Thanks it helped
@daylon907
@daylon907 2 ай бұрын
thanks!
@babaabba9348
@babaabba9348 5 ай бұрын
Yes I liked the video
@faustrare
@faustrare Ай бұрын
💛💛💛
@bu1216
@bu1216 2 жыл бұрын
Bro Code is King 👑 of Teaching Programming 👑
@techgamer3827
@techgamer3827 2 жыл бұрын
very good
@TataQueen17
@TataQueen17 2 жыл бұрын
Thanks a lot Bro
OOP Class Inheritance and Private Class Members - Python for Beginners!
16:12
Python Object Oriented Programming in 10 minutes 🐍
10:04
Bro Code
Рет қаралды 359 М.
Каха и суп
00:39
К-Media
Рет қаралды 3,2 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 25 МЛН
super/MRO, Python's most misunderstood feature.
21:07
mCoding
Рет қаралды 213 М.
Python multithreading 🧵
13:34
Bro Code
Рет қаралды 62 М.
A simple explanation of super() in Python
15:02
Sebastiaan Mathôt
Рет қаралды 46 М.
Python super function 🦸
4:45
Bro Code
Рет қаралды 102 М.
The Flaws of Inheritance
10:01
CodeAesthetic
Рет қаралды 908 М.
Learn Python Object Oriented Programming! 🚗
12:18
Bro Code
Рет қаралды 11 М.
4/6 OOP & Classes in Python: Class Inheritance, Subclasses & Super Function
9:06
Fabio Musanni - Programming Channel
Рет қаралды 4,6 М.
Python abstract classes 👻
7:45
Bro Code
Рет қаралды 73 М.
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 4,7 МЛН
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 1,7 МЛН
Klavye İle Trafik Işığını Yönetmek #shorts
0:18
Osman Kabadayı
Рет қаралды 709 М.