Python OOP Tutorial 1: Classes and Instances

  Рет қаралды 4,375,546

Corey Schafer

Corey Schafer

Күн бұрын

In this Python Object-Oriented Tutorial, we will begin our series by learning how to create and use classes within Python. Classes allow us to logically group our data and functions in a way that is easy to reuse and also easy to build upon if need be. Let's get started.
Python OOP 1 - Classes and Instances - • Python OOP Tutorial 1:...
Python OOP 2 - Class Variables - • Python OOP Tutorial 2:...
Python OOP 3 - Classmethods and Staticmethods - • Python OOP Tutorial 3:...
Python OOP 4 - Inheritance - • Python OOP Tutorial 4:...
Python OOP 5 - Special (Magic/Dunder) Methods - • Python OOP Tutorial 5:...
Python OOP 6 - Property Decorators - • Python OOP Tutorial 6:...
The code from this video can be found at:
github.com/CoreyMSchafer/code...
✅ Support My Channel Through Patreon:
/ coreyms
✅ Become a Channel Member:
/ @coreyms
✅ One-Time Contribution Through PayPal:
goo.gl/649HFY
✅ Cryptocurrency Donations:
Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot
✅ Corey's Public Amazon Wishlist
a.co/inIyro1
✅ Equipment I Use and Books I Recommend:
www.amazon.com/shop/coreyschafer
▶️ You Can Find Me On:
My Website - coreyms.com/
My Second Channel - / coreymschafer
Facebook - / coreymschafer
Twitter - / coreymschafer
Instagram - / coreymschafer
#Python

Пікірлер: 3 700
@prashanthib4488
@prashanthib4488 4 жыл бұрын
Tears from my eyes when I finally understood what "self" keyword here is all about. Thank You!!
@kristypolymath1359
@kristypolymath1359 4 жыл бұрын
Mirrors are miracles :D
@muhammadmuinmundzir9981
@muhammadmuinmundzir9981 4 жыл бұрын
Same here lol
@Thenpakkam_Manibalan
@Thenpakkam_Manibalan 4 жыл бұрын
Love from Chennai ❤️👌👍
@aradhyasharma6483
@aradhyasharma6483 4 жыл бұрын
Tears from my dong idk what's wrong
@madhubabukencha5037
@madhubabukencha5037 4 жыл бұрын
Same feeling
@kerwinso
@kerwinso 4 жыл бұрын
In my 3 years of trying to learn object-oriented Python, not a single teacher adequately explained what the "self" keyword was for -- until now. Thank you again Mr. Schafer!
@oc4026
@oc4026 3 жыл бұрын
If it's taken you three years, I'd just stop trying tbf.
@forgandorgan7552
@forgandorgan7552 3 жыл бұрын
dude 3years??
@sebastianskopek
@sebastianskopek 3 жыл бұрын
im so happy I watched this video 2 weeks in :)
@jadedaniels5076
@jadedaniels5076 3 жыл бұрын
One tutorial I used said "We'll explain this concept later" and just never addressed it again
@copyrightedchannel4939
@copyrightedchannel4939 3 жыл бұрын
3 yrs 😆
@nickmarshallvfx
@nickmarshallvfx 3 жыл бұрын
This series of lessons is honestly some of the best training I've ever seen. It's so clear and concise. The examples are perfect too. I'm writing this 4 years after they were released and they still hold up perfectly.
@shashankbangera7753
@shashankbangera7753 Жыл бұрын
2022 and still one of the most intuitive and relevant videos on OOP in KZbin. Thanks Corey for this playlist, looking forward to complete the whole series within this week
@felipeporto2758
@felipeporto2758 7 жыл бұрын
Not all heros wear capes. Corey you are the man!
@theweirdpartofyoutube8662
@theweirdpartofyoutube8662 6 жыл бұрын
NO CAPES!
@sarthak0diwan
@sarthak0diwan 6 жыл бұрын
maybe he wears a cape, we haven't seen the guy.
@Jonathan-od5xc
@Jonathan-od5xc 6 жыл бұрын
That was the most fantastic explanation of classes I have ever seen. Thank you very much!
@ashfaqrahman2795
@ashfaqrahman2795 6 жыл бұрын
He actually wears a cape when he works. Also when he sleeps.
@786Inferno
@786Inferno 6 жыл бұрын
did you just assume that he doesnt wear a cape?
@TrungNguyen-ld7hz
@TrungNguyen-ld7hz 5 жыл бұрын
I've just shown this video to my teacher. Now he's my student.
@ahmadraniri5200
@ahmadraniri5200 4 жыл бұрын
Laugh so hard for this...
@alaylmunevver3211
@alaylmunevver3211 4 жыл бұрын
this is the best comment so far
@harrisongachuru3185
@harrisongachuru3185 4 жыл бұрын
😂😂
@gorukun9087
@gorukun9087 4 жыл бұрын
Haha lol seriously??
@xfire3778
@xfire3778 4 жыл бұрын
Goru Kun you’re joking right? You didn’t seriously think this even happened
@ismailniyaz5167
@ismailniyaz5167 3 жыл бұрын
Simple, concise and an amazing piece of work! Not only did I understand something I've been struggling to wrap my head around for a while, but I can now explain everything to my classmates too. Thanks a lot for making me look like some sort of Python Jedi.
@julia_orchid_cali
@julia_orchid_cali Жыл бұрын
Corey, thank you 1000 times! Very good explanation of object-oriented concept. Understanding self was a challenge and you were able to help it to sink in. Forever grateful!
@michalmikulasi5193
@michalmikulasi5193 7 жыл бұрын
This tutorial about classes cannot be better. I really mean it, its just perfect. In my life i may have commented 3 videos here on youtube altogether, but this time i really needed to say THANK YOU, because you saved me lot of time, effort, and nerves. I am just looking forward to your other videos. Amazing work!
@coreyms
@coreyms 7 жыл бұрын
Awesome. Thanks, Michal!
@michalmikulasi5193
@michalmikulasi5193 6 жыл бұрын
its good to see that not only programmers or people who wanna learn watch these videos, but also morons do
@evelynpunzalan4606
@evelynpunzalan4606 6 жыл бұрын
Corey Schafer sir what application did you use? And how to download it for free? Thank you so much in advance :)
@evelynpunzalan4606
@evelynpunzalan4606 6 жыл бұрын
Michal Mikuláši what application is that sir? Is it notepad++?
@ananthvankipuram4012
@ananthvankipuram4012 6 жыл бұрын
John P Smith
@yogeshkumarshankariya642
@yogeshkumarshankariya642 4 жыл бұрын
University professors should learn from you regarding " how to teach students". Love from India, sir.
@rebelgordo2339
@rebelgordo2339 2 жыл бұрын
Government funded bull shit. I can learn complex mathematics, science and physics online for free better then a $100,000 university degree could teach me.
@ajithajith3803
@ajithajith3803 Жыл бұрын
Yes🎉
@occasionaltraveler
@occasionaltraveler 3 жыл бұрын
To everyone who is learning through Corey's channel. Do not ever doubt yourself whether you will land a job or not. You will, because I did by watching his videos. Thanks Corey. You are the best teacher.
@dereckwbii3504
@dereckwbii3504 3 жыл бұрын
That is AWESOME!!! So happy to hear you were able to land a job!
@ayeshavlogsfun
@ayeshavlogsfun 2 жыл бұрын
What specifically did you learn form this Channel ? Python or else ?
@occasionaltraveler
@occasionaltraveler 2 жыл бұрын
@@ayeshavlogsfun Of course Python
@ayeshavlogsfun
@ayeshavlogsfun 2 жыл бұрын
@@occasionaltraveler Did you learn whole python from this Channel mean beginner to Advance ? And what type of job are you doing using python ?
@fagbenromodupeola3095
@fagbenromodupeola3095 2 жыл бұрын
thanks for this motivation
@Matt-no4oy
@Matt-no4oy 2 жыл бұрын
Easily one of the most thorough and easy to follow guides! Most other videos explaining classes do not articulate their purpose as useful as Corey!
@vclarke4433
@vclarke4433 5 жыл бұрын
I honestly wish I just sat in my room and watched your videos rather than going to university. Much clearer and much cheaper and less stress.
@mrpanda7777
@mrpanda7777 5 жыл бұрын
Whats stopping you?
@hoseam4537
@hoseam4537 5 жыл бұрын
@@mrpanda7777 Sat is a past tense
@VMYE-ir6vw
@VMYE-ir6vw 5 жыл бұрын
what you study in college is more important than you think!
@sed4454
@sed4454 5 жыл бұрын
@@VMYE-ir6vw balls
@khinethurein7336
@khinethurein7336 4 жыл бұрын
@prostavse we are the same
@sanmulty
@sanmulty 6 жыл бұрын
You are better organized than some paid courses. Bravo !
@niteshchauhan4625
@niteshchauhan4625 4 жыл бұрын
*all paid courses.
@meatyout
@meatyout 4 жыл бұрын
@@niteshchauhan4625 Thanks God, I haven't tried them all, but you may well be right! Much better than Udemx....
@kircyclone
@kircyclone 4 жыл бұрын
Yeah. That's what I thought.
@lordshiv9290
@lordshiv9290 4 жыл бұрын
that's what i was gonna say 😂
@kristypolymath1359
@kristypolymath1359 4 жыл бұрын
@@meatyout Udemy is just awful. Pretty, packaged courses. No content.
@petrahrabakova752
@petrahrabakova752 3 жыл бұрын
After the whole semester of object oriented programming, I finally fully understood the fundamentals of it. Love your tutorial! Going to watch the next one right away :) Thank you!
@santiago0072002pr
@santiago0072002pr 3 жыл бұрын
2021 and this is one of the best videos I have ever seen someone teaching Python. I wish there were videos of data structures and algorithms in python taught by you sir.
@angadsingh6478
@angadsingh6478 3 жыл бұрын
""SELF"" the biggest mystery finally solved
@nonalcoho
@nonalcoho 3 жыл бұрын
same here
@adithyavarman6316
@adithyavarman6316 3 жыл бұрын
for mee too
@thomash7247
@thomash7247 3 жыл бұрын
yes
@salbayrak
@salbayrak 4 жыл бұрын
I don't know you but before recording this video, it is crystal clear that you asked yourself how can I be explaining better the concept of class/object to novice learners and you just nailed it. Huge thanks for great work man. We all humans should consider of adding perfectness to our professions. Cheers from Istanbul!
@donaldkeith139
@donaldkeith139 2 жыл бұрын
Brilliant stuff! So clear and very well presented because there's no extra talking or fluff - straight to the point.
@manish-gupta
@manish-gupta 2 жыл бұрын
No one can teach Classes in python better than this. Great tutorial for beginners. Thank you!!!
@sreekanthreddylingamdinne363
@sreekanthreddylingamdinne363 6 жыл бұрын
i am completely beginner to coding.after started watching you're videos find coding is awesome.i have suggested these videos my other 3 colleagues to learn python basics.Gained lot confidence.Thank you.Thank you from India.
@rogerwilco6725
@rogerwilco6725 4 жыл бұрын
A month of confusion fixed in 15 minutes. Excellent job. Subbed.
@baterickpatman
@baterickpatman Жыл бұрын
this is SO helpful for beginners (even 6yrs later!), thanks so much! Your explanations are clear n simple, and I think this channel has now become one of my main resources for Python. You're one sub closer to 1 million!!!
@jacktyler924
@jacktyler924 2 жыл бұрын
Corey, these tutorials are a pure gem! Keep up the great work! Thank you for your efforts to make it as easy to understand as possible.
@HamroMotors
@HamroMotors 4 жыл бұрын
Literally I was crying when I finally understand actual work of "self" keyword. Saviour !!!
@juliusarceo3800
@juliusarceo3800 5 жыл бұрын
Wow, you did a fantastic job explaining this concept! I am learning to code for the first time and was not able to fully grasp this material until I saw your video. Thank you so much. I look forward to watching more of your tutorials.
@lionatticus9743
@lionatticus9743 Жыл бұрын
Oh my! I’ve been writing Python code for a few months now. I’ve learned a lot, but this! This is gold. Game changer.
@jarrettguthrie1670
@jarrettguthrie1670 10 ай бұрын
This defiantly got my sub. People always seem to jump around, or leave things out, or mix terms when describing classes. This has been the most straightforward explanation I've come across.
@hassanmuhammad8520
@hassanmuhammad8520 4 жыл бұрын
This is the most amazing tutorial/ explanation on introduction to classes in python on the whole of KZbin. Thank you so much
@pxscrill
@pxscrill 4 жыл бұрын
OMG. I have been struggling to wrap my brain around all this, and you explained it so well! It's actually coming together now. Thank you so much!
@tede1838
@tede1838 3 жыл бұрын
your vid's have become my first and last stop for programming knowledge on KZbin. they never fail to clear up my understanding of each concept.
@muneebrehman7463
@muneebrehman7463 5 ай бұрын
Out of the many years I've watched videos about anything on KZbin, I can count on my hands the number of times I've actually commented on a video. However, the way Corey explained Python OOP through this video, especially a week before my computer science exam, I just had to drop a comment. This is one of the best and most informative instructional videos I've ever seen, like ever even outside of computer science. Well done!
@cheikhoudiallo1560
@cheikhoudiallo1560 4 жыл бұрын
loving it. I just started learning python and its my first programming language. I love how this guy explains new words like classes and instances in such a clear way!! thank you
@ralf1273
@ralf1273 4 жыл бұрын
The most well explained lesson about classes and instances, i've ever heard. i finally got it Thanks Corey...u'r the best
@darkscienceyt
@darkscienceyt 3 жыл бұрын
Absolutely superb presentation! Worlds better (and more useful) than Udemy!
@runningforver5958
@runningforver5958 3 жыл бұрын
I honestly dont understand why people like this dont make udemy courses... Every second udemy course is just no explanations
@intothevode
@intothevode 3 жыл бұрын
Better than codeacademy too
@harshitaseeja3290
@harshitaseeja3290 2 жыл бұрын
ikrrr, I had a hard time understanding this through Jose
@jaylooppworld381
@jaylooppworld381 2 жыл бұрын
@@intothevode no wayyy
@zackerystarling2352
@zackerystarling2352 2 жыл бұрын
yes definitely!
@shawnsweeney117
@shawnsweeney117 3 жыл бұрын
Corey. I have taken Java classes at a local university and I am a programmer from the 1980s. Classes really confused me when I took Java. Just couldn't get my head wrapped around the vocabulary. Your explanation was spot on. Thanks a great deal. Very appreciative of you taking the time to help folks like me.
@AMINE-yy3zb
@AMINE-yy3zb 6 жыл бұрын
I would give the nobel prize for this explanation. Thank you Schafer.
@HaileeMiu
@HaileeMiu 5 жыл бұрын
THANK YOU! I just went through the OOP portion of a paid tutorial but still didn't feel comfortable with the content. So I search and found you. Great thoughtful and thorough explanation.
@Daniel-cl6hj
@Daniel-cl6hj 3 жыл бұрын
Started learning Python a few days ago. So glad I found this video this early on. You've saved me a lot of time and head scratching.
@sketchfam8037
@sketchfam8037 2 ай бұрын
I’ve never experienced such clarity, deep teaching intent and professionalism in my life . This was astounding
@danverzhao9912
@danverzhao9912 4 жыл бұрын
This is the most clear explanation and demonstration on KZbin, I paid 120$ for a python class and it’s not as clear as this. Good job man keep up the good work!
@tomduda1
@tomduda1 3 жыл бұрын
I teach CS and Cory's channel is always my recommendation when a students needs supplemental material. Cory is my go to guy when I can't quite get through a particular student. Thank you Mr. Schafer for saving my butt more than a few times. Ironic note. I actually have a dog named Brooklyn lol
@lim5400
@lim5400 3 жыл бұрын
thank you! I took a python boot-camp starting with no knowledge and the explanations were really difficult to follow so I appreciate you starting with the manual code and then translating that to a class!
@manikandansrinivasan9816
@manikandansrinivasan9816 2 жыл бұрын
You are the only reason I am learning Python.. You are teaching stuff what my college couldn't do in a year
@maniece100
@maniece100 3 жыл бұрын
I can't believe it, impossible became possible. I now understood what is "self" thanks a lot man. Can't thank you enough.
@taimooralibukhari
@taimooralibukhari 6 жыл бұрын
My teacher took whole semester for this still I wanted to withdraw but this guy here.......did that in 15 min Dayum!
@popinobien4621
@popinobien4621 3 жыл бұрын
I love how well Python classes are explained in this video, thank you! My current challenge is that the data I have is in the form of a list of dictionaries and I would like to pass them onto a class.
@balrajphotography8035
@balrajphotography8035 2 жыл бұрын
I was trying to learn classes from other sources but here I am understanding it the way I wanted. Thank You, Corey Schafer
@zulfi1
@zulfi1 6 жыл бұрын
i spend hours and hours on youtube to get a clear view and concept of "__init__" and "self" finally found this video. no words simply GREAT job done.
@jessesinger4790
@jessesinger4790 7 жыл бұрын
I also think this was great. Not only do you explain how to do it, you give an example of how to do it, and ALSO give reasons for WHY to do it.
@paulamaged3312
@paulamaged3312 Жыл бұрын
I am going nuts over how effective and simple your explanation was over the multiple sources that had caused me severe phobia of "classes"! Thank you SO MUCH!!❤
@williamhu9567
@williamhu9567 2 жыл бұрын
Straightforward, to the point, and with detailed explanations of what stuff is and why it’s the way it is.
@vincentjean6756
@vincentjean6756 4 жыл бұрын
I have struggled with OOP programming for years. Always worked around it. This made me understand Classes finally! Thank you very much.
@isaiahlopez51
@isaiahlopez51 9 ай бұрын
I love how you go through examples of "manually" setting up classes and proceed to use the constructor with the INIT method. out of all the python videos this one explains it amazing. I also appreciate the way you explained class and instances and the differences.
@hughlilly
@hughlilly 2 жыл бұрын
"That's not extremely important to know" is such an understatement -- I can't believe how clearly you explained "self"! You are amazing.
@therevivalknight4678
@therevivalknight4678 5 жыл бұрын
One of the best explanations of class instances available on KZbin
@fireflynahian6878
@fireflynahian6878 5 жыл бұрын
I've watched a lot programming tutorial in KZbin... But there are no videos as good as yours... to be honest, YOU ARE THE BEST TEACHER
@hadiakbary410
@hadiakbary410 12 күн бұрын
Have been searching all over the internet for a week to understand what classes are for and what is self here, this example was the best way to explain classes in python so far from videos and materials I have seen. Thank you.
@architjain6749
@architjain6749 2 жыл бұрын
This is one of the best python OOP series on KZbin. Thanks Corey !!
@voynich7119
@voynich7119 4 жыл бұрын
Perfect. I even ran into the error with the positional arguments when I tried to create a method before you explained it. I was very confused but like a minute later you just explained it and it totally made sense. Thanks for the easy to understand and helpful tutorial.
@tobilliontv7276
@tobilliontv7276 4 жыл бұрын
I learnt more in this 15mins video than in my entire semester
@Arthurk346
@Arthurk346 4 жыл бұрын
Seems like you never payed a visit to your school
@88Timur88Bahmudov88
@88Timur88Bahmudov88 4 жыл бұрын
@@Arthurk346 i can confirm that some universities are so dumb that the statement above is true sometimes
@user-rt9pw2jk8r
@user-rt9pw2jk8r 4 ай бұрын
Best explanation of 'self' I ever heard. He covered the concept of class from so many different angles and he addressed all those question that a beginner asks while learning about the classes and especially 'self'.
@mikeshea2526
@mikeshea2526 2 жыл бұрын
Just... thank you. A clear concise explanation of what classes are, how and why the syntax works, and a realistic example of how to do it. And nobody died. We're all still here.
@basetroll1627
@basetroll1627 5 жыл бұрын
I tried for so long to understand classes and what is behind it: 15 minutes of your explanation and it made Click! Thx Corey Schafer!
@chenlmbd
@chenlmbd 5 жыл бұрын
I don't usually comment on KZbin, but I just can't help to tell you how amazing your videos are. You are making programming exciting again for me! I am so glad to have found you! Thank you so much for making these videos!
@esperanzaa7381
@esperanzaa7381 3 жыл бұрын
My dude, bless you. I have been so confused about classes since I started and apparently nobody wants to teach you anything about them after beginner's classes.
@brendensong8000
@brendensong8000 2 жыл бұрын
Thank you for this video. it's crystal clear. When a true expert teaches a subject, it stands head and shoulders above the rest!
@mcdouglekyle
@mcdouglekyle 7 жыл бұрын
Round of applause for you! That was so clearly explained. I really appreciate you making videos. Please keep them coming. I would take a class from you if you ever did that. No joke
@kabirajadhikari2092
@kabirajadhikari2092 5 жыл бұрын
Sir I finally master stuffs of object oriented. Thanks a lot for great help. You deserve best youtuber.
@alexwalters824
@alexwalters824 4 ай бұрын
This is so good! I just started learning to code in university 4 months ago and I've been struggling to find good resources to learn outside of the classroom. This is exactly the kind of content I've been searching for!
@qualimania
@qualimania 3 жыл бұрын
This is hands down the best OOP tutorial that has ever been created. Superb job!
@arkahm
@arkahm 4 жыл бұрын
Finally I found someone who can ACTUALLY explain the use of self ... THANKS COREY!!!!
@nsterui
@nsterui 3 жыл бұрын
You've explained this in a way others have not been able to, without over-simplifying or over-complicating. Much appreciated!!! Thank YOU!
@khorshedalam1589
@khorshedalam1589 2 жыл бұрын
You are truely a genius, 'Self' parameter wasn't clear to me, I just remember it to use it but why it is there and what actually it does I didn't know, but now after saw your tutorials, its very clear to me. Thanks corey!
@hemilpatel925
@hemilpatel925 3 жыл бұрын
simple, short, and to the point explanation. especially "self". Thank you, Corey Schafer
@blazejp6204
@blazejp6204 7 жыл бұрын
Hello. I have watched quite a few videos explaining classes in Python and this one is the best. I like Your clarity of presentation. I've learned a lot. Thanks
@MouradMourad1000
@MouradMourad1000 5 жыл бұрын
clear, efficient, short, so what else should we expect. thanks a lot man, you are the best
@karasu5354
@karasu5354 2 жыл бұрын
I took the class about a year ago and was confused what "self" is until now, thanks bro, you literally teaches better than university professors
@hashtags_YT
@hashtags_YT 3 жыл бұрын
Man, this 4 year old tutorial is better than any other tutorial I've ever seen including up to date ones. Thought I'd leave my comment on this masterpiece.
@MinhLe-xk5rm
@MinhLe-xk5rm 7 жыл бұрын
Great tutorial man! I feel like classes and objects in Python seem so much easier to understand compared to C++. Your explanation helps a lot too!
@nackyding
@nackyding 6 жыл бұрын
BEAST tutorials! Best I've seen on youTube, hands down!
@ig88andribs
@ig88andribs 2 жыл бұрын
Thank you Corey I'm really glad I found your channel. Beautifully conscise and at the perfect tempo for me - I get it now.
@michaelallison7259
@michaelallison7259 Жыл бұрын
Thanks mate, been trying to understand OOP and watched dozens of videos and couldn't follow it until i saw your video. This was a great help. Thank you very much.
@Eren-qo1lu
@Eren-qo1lu 4 жыл бұрын
I'd say that these details (how classes work, what instances are, what 'self' does and what happens in the background) are what distinguish basic and intermediate knowledge. And if you at least read some about it, you may detect similarities between different programming languages, and realize that it's often 'the same', but with a slightly different syntax. At least that's how i understand it. Thanks Corey, thank you for not being lazy (like me) and actually script, record, edit a video to help others understanding a topic which is very important.
@HarshitTewari20
@HarshitTewari20 4 жыл бұрын
If only our universities were filled with professors like you. God damn it! I feel as if I've wasted an entire year trying to learn something which you explained so easily and comfortably in 15 mins!! Thank You for the wonderful explanation.
@sumit1234567891011
@sumit1234567891011 3 жыл бұрын
crisp and clear. 14 mins and its all clear about class and instance. Thanks
@iiDreamzxc
@iiDreamzxc 2 жыл бұрын
Struggled so much with understanding classes and this helped me so much, thank you Corey!
@franky0226
@franky0226 4 жыл бұрын
YES! THIS IS IT, I FINALLY UNDERSTOOD WHAT "SELF" keyword IS ALL ABOUT ! thank you so much !
@heyward
@heyward 5 жыл бұрын
The best explanation I have seen of Python classes and instances! From a complete beginner
@PaaulBowdry
@PaaulBowdry Ай бұрын
Literally, just finally cracked it after watching these videos many many times since 2021 - Each instance is store in a variable and then that variable is called just like a function with its arguments. Many thanks you are good teacher and well presented!
@the-suspect
@the-suspect 3 жыл бұрын
This is one of the few videos on YT that explains 'self' properly, many thanks!
@senk0than
@senk0than 4 жыл бұрын
I wish you start something like Corey’s academy to unfold all the programming fears. Hands down the best video on OOPS
@EduljiBharucha
@EduljiBharucha 7 жыл бұрын
Clearest explanation I've seen. Thank you!
@zes7215
@zes7215 5 жыл бұрын
no such thing as importax or not bout it, ts a toolx, nonex. no st as clear or not
@bakhshizulfiqarmanzur8988
@bakhshizulfiqarmanzur8988 4 жыл бұрын
Zes dude you good?
@BinswangersDisease
@BinswangersDisease 3 жыл бұрын
Very clear presentation,. I am finally understanding what all this "Class" stuff is about, after many failed attempts with other videos . At age 73 it takes me longer to absorb material, so I run it with many rewinds.
@animelover-yj9om
@animelover-yj9om Жыл бұрын
Learning python for cyber security in an online class, and OMG, this made so much more sense then the book! Thank you so much!
@sylargray8913
@sylargray8913 7 жыл бұрын
Mate, I have hit gold. You legit explained OOP to me like it was so fucking simple. OOP is easyly one of the hardest concepts in computer programming but you explained it in a way i think anyone can understand. Thank you so much!
@coreyms
@coreyms 7 жыл бұрын
Awesome... that's nice to hear. Glad you found it useful!
@lilfoxxxx5785
@lilfoxxxx5785 6 жыл бұрын
I'm pretty sure I grasped the concept in the first 5 minutes, the pieces were finally coming together. Corey definitely made it sound so simple!
@LacksonMunthali
@LacksonMunthali 4 жыл бұрын
The "self" explanation is what makes the video more valuable. 😊
@Rarez2
@Rarez2 3 жыл бұрын
Huge thank you for describing "instance of a class", as well as mapping "class methods" to just "functions belonging to a class"!! I really appreciate the low-level/actual implementation, instead of a high-level definition which leaves rooms for questions. Also another HUGE thank you for showing the hex memory address :). Trying to pickup Python over the course of a week, coming from C/C++ lol
@ndeoligence8
@ndeoligence8 2 жыл бұрын
00:00 Introduction 00:33 Why use classes 01:09 A simple class 02:13 Class vs Instance 04:43 Initializing instance attributes with `__init__` 09:00 Custom instance methods 11:35 Importance of passing `self`
@pritiagale4204
@pritiagale4204 2 жыл бұрын
Link for this topic
@bucky5269
@bucky5269 2 жыл бұрын
People like you are why I graduated lmao
@Ok-zq6cg
@Ok-zq6cg 2 жыл бұрын
@@bucky5269 yup
@ParleysWoodedJourney
@ParleysWoodedJourney Жыл бұрын
good human
@noirceurblanche4911
@noirceurblanche4911 5 жыл бұрын
I fucking love you, that's it. I've been into python for several months already and never understood why people were using classes. But now, I do understand. Thank you :)
Python OOP Tutorial 2: Class Variables
11:41
Corey Schafer
Рет қаралды 1,7 МЛН
Python Object Oriented Programming (OOP) - For Beginners
53:06
Tech With Tim
Рет қаралды 3,2 МЛН
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 800 М.
ШЕЛБИЛАР | bayGUYS
24:45
bayGUYS
Рет қаралды 587 М.
Python OOP Tutorial 4: Inheritance - Creating Subclasses
19:40
Corey Schafer
Рет қаралды 1,3 МЛН
5 Useful Python Decorators (ft. Carberra)
14:34
Indently
Рет қаралды 78 М.
Learn Python With This ONE Project!
55:04
Tech With Tim
Рет қаралды 1,6 МЛН
Python for Beginners - Learn Python in 1 Hour
1:00:06
Programming with Mosh
Рет қаралды 16 МЛН
Fundamental Concepts of Object Oriented Programming
9:16
Computer Science
Рет қаралды 827 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 83 М.
Python OOP Tutorial 3: classmethods and staticmethods
15:20
Corey Schafer
Рет қаралды 1,5 МЛН