Python Interview Questions
Category: /knowledge /developmentTags: development
Fundamentals
OOD
- Q: What’s difference between classmethod and staticmethod? A: classmethod has ‘cls’ variable, by which we can change the state of class attributes. Usually it is used for factory generation. A static method cannot change class state.