Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren+ 2
What is the difference classmethod and staticmethod?
2 Antworten
+ 2
Class Method:
Takes reference to class (cls) instead of an instance (self)
Static Method:
You call it like a normal function ClassName.StaticMethod() without instantciating