Python OOP (Object-Oriented Programming) Project for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ส.ค. 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

  • @tobyroy336
    @tobyroy336 หลายเดือนก่อน

    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.

  • @PaarsahSoroury
    @PaarsahSoroury ปีที่แล้ว +1

    Amazing as always. Thank you so much 🙏🌹❤

  • @fvazquez64
    @fvazquez64 9 หลายเดือนก่อน

    Thanks Dave! great class!!

  • @FaberLSH
    @FaberLSH 11 วันที่ผ่านมา

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

  • @djoksus
    @djoksus 11 หลายเดือนก่อน

    Thanks for the project. keep up the good work.

  • @rohulahadi3990
    @rohulahadi3990 ปีที่แล้ว

    Thank you Dave

  • @TheMandiyualbo
    @TheMandiyualbo 10 หลายเดือนก่อน +1

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

  • @ahmedmetwaly9203
    @ahmedmetwaly9203 ปีที่แล้ว +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 3 หลายเดือนก่อน

      ​@@hussainalaa2361 are you still having this error?

  • @sonamohialdin3376
    @sonamohialdin3376 ปีที่แล้ว

    So good tutorial thank you

  • @alexanderkomanov4151
    @alexanderkomanov4151 ปีที่แล้ว

    Thanks!

  • @utinthein7274
    @utinthein7274 ปีที่แล้ว

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

  • @youssefnassib3476
    @youssefnassib3476 4 หลายเดือนก่อน

    thank you sir

  • @sathiyaseelans3035
    @sathiyaseelans3035 4 หลายเดือนก่อน +1

    Tq sir💌

  • @Nelly-Makena
    @Nelly-Makena 26 วันที่ผ่านมา

    Awesome,

  • @lsouza1327
    @lsouza1327 ปีที่แล้ว

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

  • @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 10 หลายเดือนก่อน

      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

  • @oapazbal
    @oapazbal 6 หลายเดือนก่อน

    Excelente ejemplo

  • @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!

  • @ansyita0000
    @ansyita0000 8 หลายเดือนก่อน

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

  • @dextro5422
    @dextro5422 9 หลายเดือนก่อน

    Can you do more tutorials on python oop with projects

  • @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

  • @saifulislamshanto9660
    @saifulislamshanto9660 7 หลายเดือนก่อน

    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

  • @AIZEN155
    @AIZEN155 ปีที่แล้ว +4

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

  • @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

  • @narzullayev_developer
    @narzullayev_developer ปีที่แล้ว +2

    Eidul Adha Mubaraak

    • @AIZEN155
      @AIZEN155 ปีที่แล้ว +2

      Salam alaykoum, eid mubarak

  • @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 4 หลายเดือนก่อน

      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.

  • @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

  • @shobhitgupta5501
    @shobhitgupta5501 6 หลายเดือนก่อน

    👏👏