Back to Browse

Python Programming Fundamentals | Python Classes & Objects

772 views
Oct 17, 2024
23:39

🎓 Master AI from Zero to Advanced: https://ailearninghub.io ------------------------- In this video, you'll learn the basics of object-oriented programming in Python by exploring classes and objects. We cover how to create classes, instantiate objects, and understand their attributes and methods. You'll also learn about important concepts such as instance and class variables, the init method (constructor), and encapsulation in Python. We walk through examples to help solidify your understanding of how Python OOP works. To start learning without installing Python locally, use Google Colab. Introduction to Google Colab: https://youtu.be/FXKMmilL70w Create a new Google Colab Notebook: https://colab.research.google.com/#create=true Github Code: https://github.com/dankornas/ai-roadmap/blob/main/python/12_classes_objects/classses_objects.ipynb Table of Contents: 0:00 Introduction to Python OOP 0:08 What are Classes and Objects? 1:22 Creating Classes and Instances 2:40 Understanding the __init__ Method (Constructor) 3:55 Accessing Attributes in a Class 4:48 Creating Objects (Instances) of a Class 5:44 Example: Person Class with Attributes 7:35 Instance Variables vs. Class Variables 9:02 Creating a Class with Class Variables 10:55 Defining Methods in a Class 12:18 Example: Circle Class with Area Method 14:32 Modifying Object Attributes with Methods 16:15 Encapsulation in Python: Public vs. Private Attributes 18:10 Example: Bank Account Class with Private Attributes 20:22 Understanding Name Mangling in Private Variables 23:05 AI Learning Hub Membership ------------------------- Social channels: 🐦Twitter: https://twitter.com/dankornas 🌍LinkedIn: https://www.linkedin.com/in/daniel-kornas/ 🕵Facebook: https://www.facebook.com/dankornas 📱Instagram: https://www.instagram.com/dankornas 🧵 Threads: https://www.threads.net/@dankornas ------------------------- 📚 AI Books 📚 Introduction to Generative AI 👉 https://shorturl.at/3dSQz Build a Large Language Model (From Scratch) 👉 https://shorturl.at/EFv4j *I use affiliate links on the products that I recommend. I may earn a purchase commission or a referral bonus from the usage of these links.

Download

0 formats

No download links available.

Python Programming Fundamentals | Python Classes & Objects | NatokHD