OOP in Python - Classes, Objects, class methods, monkey patching & more!

Socratica ยท Beginner ยท๐Ÿ› ๏ธ AI Tools & Apps ยท2y ago

About this lesson

๐™Ž๐™ž๐™œ๐™ฃ ๐™ช๐™ฅ ๐™›๐™ค๐™ง ๐™Ž๐™ค๐™˜๐™ง๐™–๐™ฉ๐™ž๐™˜๐™– ๐˜พ๐™ค๐™ช๐™ง๐™จ๐™š๐™จ: https://www.socratica.com/collections ๐™Ž๐™ค๐™˜๐™ง๐™–๐™ฉ๐™ž๐™˜๐™– ๐™‹๐™ฎ๐™ฉ๐™๐™ค๐™ฃ ๐™จ๐™๐™ž๐™ง๐™ฉ: https://shop.socratica.com/products/python-by-socratica 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/collections/python-merch โง“โง“โง“โง“โง“ Join this channel to get access to perks: https://www.youtube.com/channel/UCW6TXMZ5Pq6yL6_k5NZ2e0Q/join Support Socratica on Patreon: https://www.patreon.com/socratica Python instructor: Ulka Simone Mohanty (@ulkam on Twitter) Written & Produced by Michael Harrison Edited by Megi Shuke and Michael Harrison #python #pythonprograming #OOP

Original Description

๐™Ž๐™ž๐™œ๐™ฃ ๐™ช๐™ฅ ๐™›๐™ค๐™ง ๐™Ž๐™ค๐™˜๐™ง๐™–๐™ฉ๐™ž๐™˜๐™– ๐˜พ๐™ค๐™ช๐™ง๐™จ๐™š๐™จ: https://www.socratica.com/collections ๐™Ž๐™ค๐™˜๐™ง๐™–๐™ฉ๐™ž๐™˜๐™– ๐™‹๐™ฎ๐™ฉ๐™๐™ค๐™ฃ ๐™จ๐™๐™ž๐™ง๐™ฉ: https://shop.socratica.com/products/python-by-socratica 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/collections/python-merch โง“โง“โง“โง“โง“ Join this channel to get access to perks: https://www.youtube.com/channel/UCW6TXMZ5Pq6yL6_k5NZ2e0Q/join Support Socratica on Patreon: https://www.patreon.com/socratica Python instructor: Ulka Simone Mohanty (@ulkam on Twitter) Written & Produced by Michael Harrison Edited by Megi Shuke and Michael Harrison #python #pythonprograming #OOP
Watch on YouTube โ†— (saves to browser)
Sign in to unlock AI tutor explanation ยท โšก30

Related AI Lessons

Up next
I Asked ChatGPT to Apply to 500 Jobs (8 Interviews in 48 Hours)
Sabrina Ramonov ๐Ÿ„
Watch โ†’