Python Programming Fundamentals | Python Classes & Objects

Veröffentlicht am: 17 Oktober 2024
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video Python Programming Fundamentals | Python Classes & Objects mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Dan Kornas 17 Oktober 2024 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 666 Mal angesehen und es wurde von 20 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!