🎓 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: • Google Colab Basics
Create a new Google Colab Notebook: https://colab.research.google.com/#cr...
Github Code: https://github.com/dankornas/ai-roadm...
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: / dankornas
🌍LinkedIn: / daniel-kornas
🕵Facebook: / dankornas
📱Instagram: / 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.
En esta página del sitio puede ver el video en línea Python Programming Fundamentals | Python Classes & Objects de Duración hora minuto segunda en buena calidad , que subió el usuario Dan Kornas 17 octubre 2024, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 666 veces y le gustó 20 a los espectadores. Disfruta viendo!