Intermediate Python - Class and Static Methods
Class and Static methods give us power to add more functionality to the classes that we create. In this video we will explore just that.
👨💻 Looking for a web developer job, visit: www.webdevjobs.io/
👽 Discord - / discord
Timestamps ⏳
00:00 - Introduction
01:55 - Class Methods
08:46 - Static Methods
The finished code can be found here:
👾 - replit.com/@f4n/Intermediate-...
#Python #classmethods #staticmethods
Пікірлер: 7
🔴 If you enjoyed this video. Leave a Like and Subscribe :)
very cool!!
@iamrithmic
Жыл бұрын
Thanks man :)
Hi can you make video about dunder methods
@iamrithmic
Жыл бұрын
Great idea thank you! Will plan for it :)
I guess `ARE_MONSTERS_EVIL` can be accessed like `Monster.ARE_MONSTERS_EVIL` and the `staticmethod` can access it like that and change it?
@iamrithmic
Жыл бұрын
This is an interesting point. I haven't tried this out however I think this would lead to an error as the method itself will not know of the existence of Monster()