Python Programming Fundamentals | Python Classes & Objects

Pubblicato il: 17 ottobre 2024
sul canale di: 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.


In questa pagina del sito puoi guardare il video online Python Programming Fundamentals | Python Classes & Objects della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Dan Kornas 17 ottobre 2024, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 666 volte e gli è piaciuto 20 spettatori. Buona visione!