Python Programming Fundamentals | Python Classes & Objects

Publicado em: 17 Outubro 2024
no canal de: Dan Kornas
666
20

🎓 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.


Nesta página do site você pode assistir ao vídeo on-line Python Programming Fundamentals | Python Classes & Objects duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Dan Kornas 17 Outubro 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 666 vezes e gostou 20 espectadores. Boa visualização!