OOP in Python - Classes, Objects, class methods, monkey patching & more!
Socratica Socratica
891K subscribers
30,088 views
1.4K

 Published On Mar 14, 2024

๐™Ž๐™ž๐™œ๐™ฃ ๐™ช๐™ฅ ๐™›๐™ค๐™ง ๐™Ž๐™ค๐™˜๐™ง๐™–๐™ฉ๐™ž๐™˜๐™– ๐˜พ๐™ค๐™ช๐™ง๐™จ๐™š๐™จ: https://www.socratica.com/collections
๐™Ž๐™ค๐™˜๐™ง๐™–๐™ฉ๐™ž๐™˜๐™– ๐™‹๐™ฎ๐™ฉ๐™๐™ค๐™ฃ ๐™จ๐™๐™ž๐™ง๐™ฉ: https://shop.socratica.com/products/p...

In this tutorial on object-oriented programming (OOP) in Python, we use the analogy of making cookies to explain the concepts of classes and objects. This allows you to understand the distinction between classes (cookie cutters) and objects (cookies). We go on to explain how to define classes, create objects, and utilize methods. Additionally, this video covers the use of class attributes, instance attributes, class methods, and instance methods. Special cameo by monkey patching!

๐™‹๐™ง๐™ค๐™œ๐™ง๐™–๐™ข๐™ข๐™ž๐™ฃ๐™œ ๐™ฅ๐™ก๐™–๐™ฎ๐™ก๐™ž๐™จ๐™ฉ๐™จ:
Python: http://bit.ly/PythonSocratica
SQL: http://bit.ly/SQL_Socratica

Subscribe to Socratica + bell for notifications:
http://bit.ly/SocraticaSubscribe

โง“โง“โง“โง“โง“
We recommend:
How to Be a Great Student
ebook: https://amzn.to/2Lh3XSP
Paperback: https://amzn.to/3t5jeH3
Kindle Unlimited (read free): https://amzn.to/3atr8TJ

Python Cookbook, 3rd edition
https://amzn.to/3jprjX2

More Socratica Python goodies here:
https://shop.socratica.com/collection...

โง“โง“โง“โง“โง“
Join this channel to get access to perks:
ย ย ย /ย @socraticaย ย 

Support Socratica on Patreon:
ย ย /ย socraticaย ย 

Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison
Edited by Megi Shuke and Michael Harrison

#python #pythonprograming #OOP

show more

Share/Embed