Python Interview QuestionsCategory: /knowledge /development
- 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.