LinkedIn Python Skill Assessment Quiz Answers

Which statement about static method is true?

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

Which statement about static method is true?

  1.  Static methods can be bound to either a class or an instance of a class.
  2.  Static methods can access and modify the state of a class or an instance of a class.
  3.  Static methods serve mostly as utility or helper methods, since they cannot access or modify a class’s state.
  4.  Static methods are called static because they always return None.

Correct Answer:

  •  Static methods serve mostly as utility or helper methods, since they cannot access or modify a class’s state.

Latest Updates

No posts found in this category.