Question: What statement about the class methods is true?

  1. A class method is a regular function that belongs to a class, but it must return None.
  2. 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.
  3. A class method is similar to a regular function, but a class method doesn't take any arguments.
  4. 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.