What statement about a class methods is true?

Advertisement

  • 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.
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment


Share via
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend