Войти
  • 44436Просмотров
  • 1 год назадОпубликованоSocratica

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

𝙎𝙞𝙜𝙣 𝙪𝙥 𝙛𝙤𝙧 𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝘾𝙤𝙪𝙧𝙨𝙚𝙨: 𝙎𝙤𝙘𝙧𝙖𝙩𝙞𝙘𝙖 𝙋𝙮𝙩𝙝𝙤𝙣 𝙨𝙝𝙞𝙧𝙩: 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: SQL: Subscribe to Socratica + bell for notifications: ⧓⧓⧓⧓⧓ We recommend: How to Be a Great Student ebook: Paperback: Kindle Unlimited (read free): Python Cookbook, 3rd edition More Socratica Python goodies here: ⧓⧓⧓⧓⧓ Join this channel to get access to perks: Support Socratica on Patreon: Python instructor: Ulka Simone Mohanty (@ulkam on Twitter) Written & Produced by Michael Harrison Edited by Megi Shuke and Michael Harrison #python #pythonprograming #OOP