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

preview_player
Показать описание

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!

𝙋𝙧𝙤𝙜𝙧𝙖𝙢𝙢𝙞𝙣𝙜 𝙥𝙡𝙖𝙮𝙡𝙞𝙨𝙩𝙨:

Subscribe to Socratica + bell for notifications:

⧓⧓⧓⧓⧓
We recommend:
How to Be a Great Student

Python Cookbook, 3rd edition

More Socratica Python goodies here:

⧓⧓⧓⧓⧓
Join this channel to get access to perks:

Support Socratica on Patreon:

Written & Produced by Michael Harrison
Edited by Megi Shuke and Michael Harrison

#python #pythonprograming #OOP
Рекомендации по теме
Комментарии
Автор

I’m so happy !! A new Socratica Python video dropped !! Please do more such videos - they’re really so helpful !

soyuzssr
Автор

Always happy to see ulka back with a programming video

omhmpp
Автор

Best channel in youtube. I wish you guys made an app so I would use it instead of getting distracted by youtube shorts :D

ADF
Автор

I'm really amazed by the way they made this video. It tells nothing but their mystery of the concept. The moment you are able to simplify the concept is the moment you earn the master of the concept title.
Well done! And I'm glad to be part of the Socratica family.

ahmetahmed
Автор

Ulka is awesome as usual. Please list her in the credits.

Allen-byci
Автор

A nice concise overview of Python classes in only eleven minutes! 👏🏼👏🏼👏🏼

TheWyrdSmythe
Автор

Yay!!! I'm so happy to see a new video from Socratica! <3 Love your videos.

Zancb
Автор

Please do speed up uploading more amazing videos like this
I love the job you guys are doing here and appreciate it from the core of my heart🥰🥰🥰

mohammadamanalimyzada
Автор

Thank you so much for these videos. I can’t even express how appreciative I am. Please keep them coming and this format for learning is perfect.

dewaynescott
Автор

this is such an amazing video, this along with the decorators one and a few others are awesome, I'm studying CS and I'm in my first ever semester of university and they're teaching python, it's a lot of content to understand but these videos help out a lot! like learning classes from my book and the uni lecture took me 3hours almost, but this video made me understand it much better in just 11 minutes, its insane.

pineablesoda
Автор

Sent it to some friend and help him a lot. Outstanding explaining like always. You guys are awesome behind and in the front of Socratica Channel.

Mohammad
Автор

3:03 thank you so much for disambiguating "parameter" and "argument". Up next: dunder next, dunder iter, iterabale vs iterorator

DrDeuteron
Автор

As an App Dev, I will 100% be using "software thingies" to describe what I'm doing now.

StwongDave
Автор

Very well done, explained. A second part with the explanation of creating and using the dunder methods: __repr__, __str__, etc would be great.

JorgeEscobarMX
Автор

Man, those dunder methods are really magical

murphygreen
Автор

I want every single thing I'm going to learn for the rest of my life explained by Ulka. 😀

amarmusovic
Автор

Que video legal.
Continuem com essa série, por favor, pois muito agradável o aprendizado.
Obrigado

joaovazquez
Автор

Excellent video. I did not know that for self, you can pass in whatever name you want. I will still use self as it is convention but that is quite interesting. It does not seem to be the same for cls though. I started using Python OOP like 2 years ago. They make my code look so clean. 😁

emman
Автор

This is pure Gold. So elegant and clear. My question is, do you have a course I can signup that is not on YouTube? I checked Socratica collections and I only see what is on YouTube

Gtv
Автор

Like button activated, comment section engaged. Ready for takeoff.

angojones