+ 1
What does this do "@classmethod"
@classmethod
3 Answers
+ 2
Ziead Shab Kalieh
When you want to call a method without creating an object of the class then we use @classmethod.
You can see in example we have called method directly with class.
+ 4
Ziead Shab Kalieh It's to create an instance of a class.
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2473/
+ 1
It's to create an instance of a class.
Why? Where do we use it?
I Am Groot !



