Python OOP (Object-Oriented Programming) Project for Beginners

Поделиться
HTML-код
  • Опубликовано: 21 июл 2024
  • Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
    Learn Python OOP with this Python OOP (Object-Oriented Programming) Project for Beginners. In this beginners Python tutorial, you will apply what you have learned about classes, objects, inheritance and polymorphism.
    💖 Support me on Patreon ➜ / davegray
    ⭐ Become a full-stack dev with Zero To Mastery Courses:
    - The Complete Python Developer: bit.ly/CompPythonDev
    - Complete Machine Learning & Data Science: bit.ly/CompMachineLearning
    - Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
    🚩 Subscribe ➜ bit.ly/3nGHmNn
    📬 Course Updates ➜ courses.davegray.codes/
    ❓ Questions - Please post them to my Discord ➜ / discord
    ☕ Buy Me A Coffee ➜ www.buymeacoffee.com/davegray
    👇 Follow Me On Social Media:
    Github: github.com/gitdagray
    Twitter: / yesdavidgray
    LinkedIn: / davidagray
    🔗 Source Code: github.com/gitdagray/python-c...
    🔗 Playlist for this Python Course: bit.ly/dg-beginners-python
    Python OOP (Object-Oriented Programming) Project for Beginners
    (00:00) Intro
    (00:05) Welcome
    (00:15) Getting Started
    (00:51) Initializing the Bank Account class
    (04:31) get_balance method
    (06:08) deposit method
    (08:07) BalanceException and viable_transaction method
    (10:52) withdraw method
    (13:59) transfer method
    (18:32) Interest Rewards Account class
    (23:01) Savings Account class
    (29:20) Wrap up
    📚 Tutorial References:
    🔗 Python Official Site: www.python.org/
    🔗 Visual Studio Code Official Site: code.visualstudio.com/
    🔗 Python Module Index: docs.python.org/3/py-modindex...
    🔗 Python Standard Library: docs.python.org/3/library/ind...
    🔗 w3Schools List of Python Built-in Exceptions: www.w3schools.com/python/pyth...
    Was this Python tutorial about building a practice OOP project helpful? If so, please share. Let me know your thoughts in the comments.
    #python #oop #project

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

  • @boualamiSohaib
    @boualamiSohaib 11 месяцев назад +4

    great video finally getting to catch some of the basics through a project based tutorial wish is a great way to know how to implement the basics thank you for your effort

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

    Amazing as always. Thank you so much 🙏🌹❤

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

    Thanks Dave! great class!!

  • @djoksus
    @djoksus 11 месяцев назад

    Thanks for the project. keep up the good work.

  • @tobyroy336
    @tobyroy336 19 дней назад

    thank you for this lovely video Dave. Clear and succinct with enough repeatability to reinforce key concepts and ideas. Really appropriate for a beginner in OOP.

  • @FaberLSH
    @FaberLSH 8 часов назад

    Thank you so much!! I learned a lot!!!

  • @ahmedmetwaly9203
    @ahmedmetwaly9203 11 месяцев назад +4

    Crystal clear explaining!!
    Thank you for your efforts

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

      account.deposit(amount)
      ^^^^^^^^^^^^^^^
      AttributeError: 'str' object has no attribute 'deposit'
      i cant complete the transfer func, it gives me that error. do u know whats wrong with it, please ?, the thing it didnt happen in the transfer func, before the interstaccount, it happend in the interest acc which is kinda weird

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

      ​@@hussainalaa2361 are you still having this error?

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

    Thank you Dave

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

    So good tutorial thank you

  • @mansbjork5721
    @mansbjork5721 10 месяцев назад +1

    This should have more views. I know Python, but never really got into OOP much. This is great learning material, also thanks for talking about those VS Code shortcuts :)

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

      Dave is one of the few best in any material he teaches , I hope he make some advance oop projects too , there is a huge gap in between OOP we learn and OOP in action , there is one guy named JimShapedCoding that makes a mine sweeper game . wow I can not even begin to imagine before seeing that video and some other stuff from clear code (atlas) in GUI programming and games that blows your mind how this method of programming can do.

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

      Same, I need to accustomed to oop by learning how it's applied in projects

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

    Thank you very much indeed SIR!.
    I Love you.

  • @TheMandiyualbo
    @TheMandiyualbo 9 месяцев назад +1

    This is amazing! What I was looking for to practice classes. Thanks

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

    Thanks!

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

    hey Dave, what about doing a tutorial about Svelte fire? I love watching your tutorials

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

    Hi, Im Krish, Founder of Technolabdigitals from INDIA!!
    Your tutorials are pure coding gold! 🌟 I have a suggestion. How about creating a full tutorial series on building a MENN Stack Subscription Platform? 🚀🔥
    From User Management to Content Control, User Roles to Payment Integration, and Admin Controls to User Authentication, your expertise in these areas is unmatched. And adding a touch of genius by locking content for free users would make it even more exciting! 💡💪
    I can already imagine how your step-by-step approach and knack for simplifying complex concepts will make this tutorial series a developer's dream. Your creativity and attention to detail will shine through as you guide us through the entire process, from start to finish.
    Count me in as one of your eager subscribers eagerly waiting to dive into this MENN Stack masterpiece!

  • @Nelly-Makena
    @Nelly-Makena 16 дней назад

    Awesome,

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

    Hey dave! Great video, if you can do a video on redux toolkit specifically with Typescript that would be awesome, i dont believe you have that yet, along with React query would be a bonus!

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

      Dave covered React toolkits. Just not with TS. It was covered in two different videos. Redux video and MERN stack video

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

    thank you sir

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

    Can you do more tutorials on python oop with projects

  • @sathiyaseelans3035
    @sathiyaseelans3035 3 месяца назад +1

    Tq sir💌

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

    Excelente ejemplo

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

    Quick question: What will you teach us after this course?

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

    Thanks a lot!!! That's so helpful 🥰🥰

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

    How come class "InterestRewardAcct" does not get
    def __init__(self, initial_amount, acct_name):
    super().__init__(initial_amount, acct_name)
    like class "SavingAcct" ?

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

      account.deposit(amount)
      ^^^^^^^^^^^^^^^
      AttributeError: 'str' object has no attribute 'deposit'
      i cant complete the transfer func, it gives me that error. do u know whats wrong with it, please ?, the thing it didnt happen in the transfer func, before the interstaccount, it happend in the interest acc which is kinda weird

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

    I have to run the python file I changed before I can run the file that uses something from a changed file. How can I fix that ? its quite annoying to run every single time all files 1 by 1 ...

    • @xdjqye
      @xdjqye 7 месяцев назад +1

      not exactly sure what you mean but if it's about saving the file you're making classes and methods in before running the other file that's inheriting those classes then you just have to press ctrl+s (for windows) to save the first file before you move onto the next file which you actually need to run

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

      press ctrl+s on the first file then go to the new one and press the same then run

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

      @@xdjqye ihave a question :
      account.deposit(amount)
      ^^^^^^^^^^^^^^^
      AttributeError: 'str' object has no attribute 'deposit'
      i cant complete the transfer func, it gives me that error. do u know whats wrong with it, please ?, the thing it didnt happen in the transfer func, before the interstaccount, it happend in the interest acc which is kinda weird

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

    Why InterestRewardAcct doesnt have a super Init method?

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

      account.deposit(amount)
      ^^^^^^^^^^^^^^^
      AttributeError: 'str' object has no attribute 'deposit'
      i cant complete the transfer func, it gives me that error. do u know whats wrong with it, please ?, the thing it didnt happen in the transfer func, before the interstaccount, it happend in the interest acc which is kinda weird

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

      Im not entirely sure, but i read it somewhere that during inheritance, the child class implicitly instantiates the parent's attributes and methods but It's a good practice to have it when adding a new attribute to the __init__ method to avoid any overwrites. Besides modifying a method in a child class.

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

    Eidul Adha Mubaraak

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

      Salam alaykoum, eid mubarak

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

    I love this project so much. I just learned OOP in Python, but I'm not sure how to apply it to a project. I understand now how to apply OOP Concepts to a project. I don't fully understand all of the project's topics 😅. However, I had to repeatedly code in order to understand this 💪💪💪💪💪💪. Thank You SO Much Dave

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

    👏👏