LinkedIn Python Skill Assessment Quiz Answers

Which statement about the class methods is true?

Latest Update on 25th January, 2022 by Certification Course Answers

Which statement about the class methods is true?

  1.  A class method holds all of the data for a particular class.
  2.  A class method can modify the state of the class, but it cannot directly modify the state of an instance that inherits from that class.
  3.  A class method is a regular function that belongs to a class, but it must return None
  4.  A class method is similar to a regular function, but a class method does not take any arguments.

Correct Answer:

  •  A class method can modify the state of the class, but it cannot directly modify the state of an instance that inherits from that class.

Latest Updates

No posts found in this category.