OOP Class Inheritance and Private Class Members - Python for Beginners!

Поделиться
HTML-код
  • Опубликовано: 20 дек 2024

Комментарии • 301

  • @Kiteboarding316
    @Kiteboarding316 2 года назад +46

    I'll be honest I thought she was classic click bait: hot chick + interesting topic = views, but she does break down the core concepts in an easy and engaging way.

    • @PythonSimplified
      @PythonSimplified  2 года назад +15

      hahahaha thank you so much Design! 😁
      I'm super happy you liked this tutorial and even happier to see you summarized the entire purpose of this channel in one sentence! 😀😀😀
      Trying to take some difficult concepts and make them approachable for everyone, so thank you so much for your lovely comment!

    • @wesleyphon508
      @wesleyphon508 7 месяцев назад

      can this be simply with dataclass or even pydantic -hmmm

    • @wesleyphon508
      @wesleyphon508 7 месяцев назад

      simplfy

    • @wesleyphon508
      @wesleyphon508 7 месяцев назад

      simplify - sorry my key get stuck

    • @ATFstein
      @ATFstein 2 месяца назад +1

      Nope, she’s just your classic intelligent, well articulated, beautiful woman who definitely knows how to teach brought me up to speed real quick

  • @Subconscious97
    @Subconscious97 Год назад +4

    Thank god there is this beautiful angel to learn from because I’m tired of indie voices

  • @TomkinsOkello
    @TomkinsOkello 2 года назад +52

    You present complex programming topics in an easier way so much so that newbies understand the concepts explained.

    • @PythonSimplified
      @PythonSimplified  2 года назад +7

      Thank you so much Tomkins! 😁
      That's exactly my goal with each tutorial, super happy it shows!
      Thank you for the lovely comment! 😃

    • @tehpimpmasta
      @tehpimpmasta Год назад

      Not to mention, make coding look sexy asf. 😅 😍🤤🥵🤩

  • @nikolayhodyunya6861
    @nikolayhodyunya6861 Год назад +1

    I'm a professional (senior) programmer with 5 years of experience of writing production quality code, still i find this tutorial refreshing.

  • @artaniskim2120
    @artaniskim2120 2 года назад +6

    As just as what Albert Einstein said "If you can't explain it simply, you don't understand it well enough." I was struggling with the OOP and you simply nailed it for me. Thank you so much. looking forward to see more videos from you !.

  • @ryansh86
    @ryansh86 Год назад +2

    Wow, I was struggling for few days to understand Classes in python.
    In the beginning, I simply didn't watch your videos more than 1 minute bcoz I thought a hot chick trying to get some extra views.
    But I saw your videos popping up multiple times and start watching complete videos.
    Damn, she is one of the best python tutors out there.
    All my doubts are clear now.
    Thanks 🙏 for such amazing videos.

  • @RicCarden
    @RicCarden 2 года назад +12

    Amazing. You took 12 minutes to clearly explain what I've spent 2 days trying to get my head around. I've got it!
    You have a real talent for teaching. :-)

  • @romanhaskelsky969
    @romanhaskelsky969 2 года назад +3

    One small tutorial has done more than all the other lessons in the last 6 months! Thanks!!!

  • @tastonic30
    @tastonic30 2 года назад +4

    The best python RUclipsr I would personally recommend... The simpler it is explained.. The simpler it is even to grasp and execute... Keep it up

  • @DupondBenoit
    @DupondBenoit 11 месяцев назад +2

    This was perfect for beginners like me, I combined this with the free practice exam and study guides i found on Learnology World, although those materials were useful for me to prepare for the type of exam questions that i should be expecting in the exam, these video was good in helping me understand the course better, all essential topics was mentioned. thank you very much ❤ i really appreciate

  • @eduarmafla6148
    @eduarmafla6148 2 года назад

    I have beeb quite awhile learning python. YOU are the best tutorial person that I have experienced teaching python and more. and you are the smart, everybody should learn from you.

  • @TechieTard
    @TechieTard 2 месяца назад

    I've had to go down the Python rabbit hole against my will for data manipulation and extraction at my job. You're lessons are ridiculously easy to be understood, and apparently I already have a better understanding in two weeks with you than my other peers at 1 year elsewhere. I have one issue with your lessons though, they contain a major distraction, you are ridiculously beautiful and I cannot focus on your lessons because I absolutely cannot stop looking at you vs the code....so I've had to cover you up during the lessons. You are very intelligent and extremely inteligible! Thanks!

  • @sgarrison05
    @sgarrison05 10 месяцев назад +2

    I have read and watched other explainations on this topic. By far, this was the best explaination with easy examples. I have the basic and always felt like the intermediate topics are not covered quite as well or often. Thank you for your dedication.

    • @PythonSimplified
      @PythonSimplified  10 месяцев назад

      Thank you so much for the lovely comment!! 😃😃😃

  • @SLTechnologyBest
    @SLTechnologyBest Год назад +1

    Dudeee till now i was struggled on OOP. It's mad how simply you explain these stuffs great work no words to explain woaaah. Continue the good work

  • @tiramercu
    @tiramercu Год назад +8

    This is so much more understandable than my university lessons. Thank you so much!

  • @joereality1664
    @joereality1664 2 года назад

    I've learned Python for work and have been using it regularly for work projects.
    I just gotta say, even watching these beginner videos again after some time is teaching me new things. She's dropping little nuggets here and there that explains so much that I didn't fully understand until getting more familiar with OOP.
    Absolutely gold. And she's great at breaking it down and explaining!

  • @americovaldazo6373
    @americovaldazo6373 2 года назад +1

    As a guitar player, this is the best example to learn classes and inheritance in Python. Thank you very much.

  • @MuneebHaroon-z9m
    @MuneebHaroon-z9m 5 месяцев назад +2

    Thankyou so much , One of the best explanation on inheritance

    • @PythonSimplified
      @PythonSimplified  5 месяцев назад

      Thank you for the incredible feedback!! Super happy you found my tutorial useful! 🙂

  • @Khigha87
    @Khigha87 2 года назад

    Thank you so much for this video. I was struggling with OOP and reading words from a few books provided only marginal clarity. Your singing surprised me, I don't know why I didn't expect you to sing well lol. Your singing ability is second only to your ability to explain coding concepts. Thanks again!

  • @calebsuit5390
    @calebsuit5390 10 месяцев назад

    Your videos are the most helpful python tutorials I have found. You are a great instructor. Please keep making more great instructional content.

  • @suvimpemel5583
    @suvimpemel5583 2 года назад +18

    This was a great tutorial for me. It so happened to be that I new these things and I never new where to use and why to use.
    The best part is I'm a bass guitarist, the examples you took are really striking to me. Also the song "House of the rising sun" is a song that my brother and I use to play instrumental on.

    • @PythonSimplified
      @PythonSimplified  2 года назад +4

      Thank you so much for the incredible comment Suvim! I'm so happy you found this video helpful! 😃😃😃
      "House of the rising sun" is one of my favourite songs to play! it has super easy chords and everybody knows it by heart!
      I usually replace "New Orleans" with "Hastings Street" as I live in Metro Vancouver so it's quite appropriate! hahahaha (it's a really nasty street!)
      I think it's absolutely awesome you play bass! We can almost start a PythonSimplified band with Ryuya Sho on the drums and you on the bass! We only need lead guitar and we're good to go (I have a feeling that your brother might be able help with that)! 😊
      I don't think many people know this - but I've been singing in a heavy metal band when I was younger so the music vibes are strong with me! 😉
      Now I only have my classic guitar, my voice and my audience which consists of my spouse and my cat hahahaha (unfortunately all my bandmates are on the other side of the planet and it's not as fun to write music on your own - I've always seen it as a team activity! 🙃)

    • @suvimpemel5583
      @suvimpemel5583 2 года назад

      @@PythonSimplified wow, I would love to play the bass if you are putting up the band together. Yes my brother plays the lead guitar. He is much better on production side.
      I'm pretty sure your audience is mesmerized by your talent and my prayers on your bandmates.

    • @srlhyo
      @srlhyo 2 года назад +1

      new or knew?

    • @suvimpemel5583
      @suvimpemel5583 2 года назад +1

      @@srlhyo "never knew",
      Thanks for the correction

    • @srlhyo
      @srlhyo 2 года назад

      @@suvimpemel5583 glad to have helped!

  • @deniskasala8520
    @deniskasala8520 2 года назад

    Thank you for making OOP easy to understand, much appreciated. From south africa.

  • @mkhadka123
    @mkhadka123 Год назад

    The best thing about your videos/explanation is that you make complex topics in programming such as OOP so much fun to watch and understand them clearly at the same time. It feels like learning when we were children.

  • @breamgarces4680
    @breamgarces4680 2 года назад

    there is a print function in the class and yet explicitly called outside the class. I think it is best to write return("pam pam pam pam...") then call it outside the class as print(my_guitar.play()). I am still learning python and I am catching a "none" error. I am not sure about my solution though but it works in my end. Thank you and keep providing quality tutorials! Love from the Philippines!!!

  • @mailsidney
    @mailsidney 4 месяца назад

    Thanks so much for simplifying this difficult topic. Appreciate it.

  • @validol696
    @validol696 Год назад

    Thank you so much from Ukraine! 🌹
    You explain everything very clearly!!! Subscribed

  • @noelremasu
    @noelremasu 9 месяцев назад

    You are such a great tutor, I wish I had you as my mentor or lecturer at university

  • @GregThatcher
    @GregThatcher 6 месяцев назад

    Thanks!

  • @renibrito8411
    @renibrito8411 2 года назад

    Great i´m from brazil and i study in my native language and and practice my english i watching your videos to practice more. congratulations for you teaching me i'm learning a lot and , learning english as well .

  • @Dragons927
    @Dragons927 10 месяцев назад

    A gorgeous example of a class guitar!

  • @NZarboristBryce
    @NZarboristBryce 3 месяца назад

    Nice explanation on inheritance! Needed this for my test today too. Thanks 😊

  • @powersprouter
    @powersprouter Год назад

    Thank you!!!! Your tutorials are a gold mine - you really are talented at making confusing subjects much easier to understand.

  • @damianphillips8266
    @damianphillips8266 Год назад

    Very Informative! Why can't some lecturers be more like this ?? Instead of visiting the university of RUclips !! 👍👍👍

  • @internetchild
    @internetchild 2 года назад

    Wow! This is by far the best tutorial I've come across. Thank you :)

  • @obajiokereke4028
    @obajiokereke4028 Год назад

    so much covered in this video... kudos..highly recommended

  • @Aziz_Ahmad
    @Aziz_Ahmad 9 месяцев назад

    Thank you for the amazing tutorial playlist! I learned so much and really enjoyed the clear explanations and practical examples. Grateful for the knowledge you shared!
    video no #2

  • @DucatiSydney
    @DucatiSydney 2 года назад

    You are the best teacher! Very polite in communication, attention to detail is impeccable (you don’t forget or fail to explain any details like () something like that). The way you take time and not rush things really helps a beginner to follow along, although English isn’t my native language, I could pick up all the jargons and technical terms and relate to it smoothly. Feels great to discover your channel.
    more videos please! .upper()

  • @peaceoluchi2377
    @peaceoluchi2377 Год назад +1

    Thanks for your classes. You broke down a hard nut to crack for me.

  • @jawadmansoor6064
    @jawadmansoor6064 Год назад

    Had I not found this video I would have died without learning OOP. I stopped watching and gave up after trying for years to understand this, but today it just clicked, or rather I just clicked. :)

    • @easydatascience2508
      @easydatascience2508 Год назад

      You can watch mine too. The Python and R playlist provide most of the fundamentals, with detailed source files. The style is combined wth ppt and coding, step by step, sequentlially arranged.

    • @jawadmansoor6064
      @jawadmansoor6064 Год назад

      @@easydatascience2508 interesting. I will take a look and return.

    • @easydatascience2508
      @easydatascience2508 Год назад

      @@jawadmansoor6064 OK, thanks

  • @amodiy
    @amodiy 10 месяцев назад

    Thank you thank you thank you! For explaining these concepts in the most simplified manner ever, gained a subscriber

  • @charisagapi1648
    @charisagapi1648 2 года назад

    Thanks Mariya for your perfect and pleasant style of present python....i enjoy and have addiction to your lesson !

  • @freedtmg16
    @freedtmg16 2 года назад +3

    Wow this really helped me understand classes as a whole a lot better across all languages. The examples you used were so much better than (pet eat or family cat or whatever I usually see) thanks!

    • @PythonSimplified
      @PythonSimplified  2 года назад +2

      hahahaha yeeey!! I'm super happy you found my tutorial helpful! 😀
      I'm gonna film an additional practice tutorial soon, this time using vehicle classes and inheritance. We will draw different types of vehicles in a recent Pygame project, so this time we'll see an extra visual example (which I believe is the best way to learn 😉)

  • @AbhiKumar-oc6qw
    @AbhiKumar-oc6qw Год назад

    Very good explanation of this topic. Thankyou so much for this and this explanation is very helpful for me.

  • @stefaniafiorucci9826
    @stefaniafiorucci9826 8 месяцев назад

    I love the way you teach! So simple 🎉

  • @Novacasa88
    @Novacasa88 2 года назад

    You have an exellent teaching style and presence. Good work. Enjoying your videos.

  • @wahswolf88
    @wahswolf88 2 года назад +1

    So easily understandable teaching here. Subscribed.

  • @Manopatz
    @Manopatz 2 года назад

    best tutorial for using multiple class !!!!

  • @munivoltarc
    @munivoltarc Год назад

    She is rocking on subject and emotions

  • @johnlj_ciscocertified
    @johnlj_ciscocertified 10 месяцев назад

    well explained, thank you for this video it will help me on my Cisco DevNet learning and certification.

  • @aguypassingby1945
    @aguypassingby1945 Год назад

    Thank you, Mariya!!!
    You're awesome!

  • @twopointfiveshep
    @twopointfiveshep Год назад

    You explain things so we’ll. Thank you!

  • @mikekerry7989
    @mikekerry7989 Год назад +1

    Glad to hear you now calling them ATTributes, and not atTRIButes as you did earlier!

    • @PythonSimplified
      @PythonSimplified  Год назад

      Hahaha yup! I was corrected in the comments of the previous video 😉

  • @novicetech1
    @novicetech1 Год назад

    Another amazingly useful video. Thank you.

  • @vctorroferz
    @vctorroferz 2 года назад

    Just amazing ! such a complex topic in what a wonderful and easier way explained !

  • @jmdamasceno
    @jmdamasceno Год назад

    you´re so amazing... So many helpful to watch your lessons... It is so nice to see you, so beautiful! thanks a lot.

  • @NoobYoutuber83
    @NoobYoutuber83 8 месяцев назад

    Beautiful teacher with nice explanation

  • @tanveerelahi
    @tanveerelahi 2 года назад

    like your funny way of teaching, i now got an idea about classed

  • @czglory
    @czglory Год назад

    You are a skilled teacher thanks

  • @anthonypretty2877
    @anthonypretty2877 Год назад

    I'm quite astonished you don't have many more subs as I have viewed hundreds of related videos and yours are , by far, superior in both the presentation and content explanations. Class first!

  • @varsketisLT
    @varsketisLT 2 года назад

    You are my favorite python teacher, thank you so much!
    Now working on my first kivy app, which I started half a year ago, then things in life happened and I just stopped working on it.. Picked it up a couple of days ago and voila! Already created my own settings screen with a json file to dump the settings into; already have 2 languages (en and lithuanian) built-in, and also I'm starting to really know what I'm doing. Hopefully my github page will have a single completed project soon :D
    This OOP tutorial just cemented everything I have thus far learned. Thank you so much!

    • @adebanjoabiodunadeyemi4259
      @adebanjoabiodunadeyemi4259 2 года назад

      I need adequate tutorial on kivy....any recommendations please?

    • @varsketisLT
      @varsketisLT 2 года назад

      @@adebanjoabiodunadeyemi4259 Depends on what you're building.
      Have you built anything already? Or do you want to start from scratch?

    • @adebanjoabiodunadeyemi4259
      @adebanjoabiodunadeyemi4259 2 года назад

      I want to start from scratch. I will appreciate your assistance

  • @DominikZalewski85
    @DominikZalewski85 2 года назад

    Best explanation I saw on YT! You are such a positive and funny person and great at teaching. I'm surprised you have 100k subs "only" ;)

  • @sufianaliyyii9596
    @sufianaliyyii9596 8 месяцев назад

    you are so cleaver in teaching . i request you to provide more detail tutorial on Django with your such brilliant mind please. i search for more videos on Django and python, but their content is not complete. thank you

  • @qiyuanzhang1641
    @qiyuanzhang1641 2 года назад

    Thanks, You are really good teacher of Python! Your video lessons are beautifully crafted, and I would love to see your videos in China.

  • @murtazabadshah1535
    @murtazabadshah1535 2 года назад

    WOW amazing tutorial. You explained the concepts so clearly. I finally understand the self notation and what it's used to for. Thank you so much! Please keep uploading more tutorials :)

  • @kvelez
    @kvelez Год назад

    Excellent video, really liked this tutorial.

  • @amourvido8027
    @amourvido8027 2 года назад +2

    I just feel like you are the best!❤️🔥🔥

  • @ellukayou
    @ellukayou 2 года назад

    You are good transmitting knowledge

  • @shahradkamran6922
    @shahradkamran6922 2 года назад

    this tutorial was very useful for me and i'll say much thanks to the developer

  • @fbravoc9748
    @fbravoc9748 Год назад

    Amazing tutorial !! Thanks!

  • @vocalresultsartistdevelopm9661

    Hi! Thanks for the vid. You say the 2nd method (melody) can be introduced in the init method 3:47. Then you print it to show it does the same thing. You then say it is called every time it's initialized. Then why didn't it print "6" which is also part of the init method. Thank you in advance

  • @michaeltse321
    @michaeltse321 9 месяцев назад

    an attribute holds data but the name of the attribute and the value could be information. If you name your attribute x and set the value 6 then it's not information but if you name it number_of_strings then that is information.

  • @dimitriosdesmos4699
    @dimitriosdesmos4699 2 года назад +1

    very clearly presented i actually enjoyed it.

    • @PythonSimplified
      @PythonSimplified  2 года назад

      Thank you so much Dimitrios! glad you liked it! 😀😀😀

  • @kostas6915
    @kostas6915 Год назад

    Top explanations and clarifications!

  • @ZahedulIslamChowdhury
    @ZahedulIslamChowdhury 2 года назад +1

    Excellent Lecture for Python Learners. I am waiting your next video about of Object Oriented Programming & Data Structure Algorithm in Python. Please make video about this topic.

  • @mindlessmeat4055
    @mindlessmeat4055 27 дней назад

    OMG this was so helpful...also that monitor.

  • @fouezdesign
    @fouezdesign 2 года назад

    Great Great Great... Btw, congratulations Canada 🍁 for joining the others ⚽

  • @digigoliath
    @digigoliath 2 года назад +1

    I am enjoying tihis series Mariya. And hey, I am a Classical Guitarist! Great content & presentation as usual. Glad that I did Java OOP so I am in familiar territory. :))

    • @PythonSimplified
      @PythonSimplified  2 года назад +1

      That's awesome! thank you so much! 😊
      Will do another practice tutorial with class inheritance soon - this time generating a parent vehicle class along with sedan, truck, motorcycle, van, coupe child classes.
      We will then randomly select a child class and draw it as the enemy vehicle in the recent car game we've created! 😀😀😀

    • @digigoliath
      @digigoliath 2 года назад

      @@PythonSimplified SWEET!! That would be so much fun. 🤩🤩

  • @wilsonisaac3806
    @wilsonisaac3806 Год назад +2

    " there's nothing like private, we just being polite 😂 "

  • @nandinirm2234
    @nandinirm2234 2 года назад

    Good explanation ...
    Fan from India

  • @shivamborkotoky3788
    @shivamborkotoky3788 Год назад +2

    You're a great teacher.! I'd suggest you must upload your content on other online learning platform like Coursera, Udemy, etc.

    • @PythonSimplified
      @PythonSimplified  Год назад +13

      Thank you so much Shivam! 😃
      I strongly believe that education should be free and available for everyone, I wouldn't want to charge folks for my tutorials or place them on platforms that do 😉

    • @sonjoysaha5454
      @sonjoysaha5454 Год назад

      I salute you and your views.

  • @brianketelboeter8522
    @brianketelboeter8522 2 года назад +1

    'chile' class LOL. awesome tutorial btw

  • @anthonyrojas9989
    @anthonyrojas9989 2 года назад

    Your videos are fun and informative! Thank you

  • @udbhav3760
    @udbhav3760 2 года назад +1

    2:37 XD hahahahaha lol your song 😂😂🤣🤣Pam pamm pammm
    Best way to teach....
    Why only Guitar not piano!!
    Well I'm learning how to play guitar!!
    And I know how to play piano :-)
    Nice tutorial!!!

    • @PythonSimplified
      @PythonSimplified  2 года назад +1

      I didn't know you play piano Udbhav!!! this is awesome!
      I play it too but super rusty after many years of hiding my synthesizer under the couch 😅😅😅
      It seems like we can already start a band given all the musicians in our little community! Badger even has a 7 string guitar!! we're ready to rock! 😁
      How's it going with the exams??

    • @udbhav3760
      @udbhav3760 2 года назад +1

      @@PythonSimplified it's going good. Well I don't know about burger XDDD but I have guitar and I didn't play it much.. hahaha
      everything kinda in pause mode because of exams :) and what about you I mean your result? How is it?

  • @fokstephen3642
    @fokstephen3642 2 года назад

    You are very pretty girl🥰 Love watching your tutorial. Very clear and easy to understand

  • @bigbadcatbigbcy2933
    @bigbadcatbigbcy2933 Год назад

    Thanks a lot. This helped me a lot

  • @welkey90
    @welkey90 2 года назад

    I guess no matter what the age is, falling in love with your teacher is a thing :D

  • @SusanAmberBruce
    @SusanAmberBruce Год назад

    I would love to see a tutorial about using Class's in building a Tkinter app, especially assigning variables to input methods like textbox.
    Thanks for all your great video's, you certainly know your stuff 👍

  • @gareththwaite5128
    @gareththwaite5128 2 года назад +1

    Great video. Well done

    • @PythonSimplified
      @PythonSimplified  2 года назад

      Thank you so much Gareth! Glad you liked it! 😊

  • @mathieuseligmann9488
    @mathieuseligmann9488 2 года назад

    Thank you very much, great content

  • @liri1189
    @liri1189 2 года назад

    At 8:30, why are empty parentheses needed after Guitar?

  • @cybersecurityexpert477
    @cybersecurityexpert477 2 года назад

    hello ma'am which one thing you prefer for learning programming books or RUclips tutorials

  • @BicospaceTech
    @BicospaceTech Год назад

    When you said ahhhha you remind me with Gargamel lol >>>> sorry it was very funny, but thank you, you so dope and very help full

  • @chrisojwang
    @chrisojwang 2 года назад

    Am here to watch and undestannd later😀

  • @DerFlotteReiter
    @DerFlotteReiter 2 года назад

    I wonder what you have seen at 1:39 😅
    Beside this I have to say I like your videos very much ☺️

  • @li0770
    @li0770 Год назад

    At 6:04 I really don't get how the print statement got printed before the n.strings if the function call comes after the attribute 😮

    • @boomershare9707
      @boomershare9707 Год назад

      Though the method self.play() comes after n_strings, the print statement only executes after the instance of the parent class is initialised.
      So, an object of Guitar is created which initialises the object based on the attributes in the Guitar's __init__ method. Though self.n_strings is before self.play(), the only thing being done to n_strings at this point is assigning an integer to this variable. There is no printing of n_strings just yet. There is the call to the method play(). The print statement in this method is executed, then print(my_guitar.n_strings) is executed. This is why "pam pam ..." was printed before n_strings. It's the order in which these things were called.

  • @FullMetalDMZ
    @FullMetalDMZ Год назад

    7:09 Mariya, bringing the Djent!🦾

  • @LyraF-g8e
    @LyraF-g8e Год назад

    Hi! Love the channel. Do you know what version of Python you're working in? I'm in 3.6, do you know if there's any big differences between 3.6 and what you're working in?

  • @haroldsu1696
    @haroldsu1696 2 года назад

    inspiring ,and thank you !

  • @elastvd7503
    @elastvd7503 2 года назад

    Very cute explanation

  • @inityo
    @inityo 9 месяцев назад

    You teach very good, I subbed..