Question: What statement about the class methods is true?
- A class method is a regular function that belongs to a class, but it must return None.
- A class method can modify the state of the class, but they can't directly modify the state of an instance that inherits from that class.
- A class method is similar to a regular function, but a class method doesn't take any arguments.
- A class method hold all of the data for a particular class.
Answer: The correct answer of the above question is Option B:A class method can modify the state of the class, but they can't directly modify the state of an instance that inherits from that class.