LinkedIn Python Skill Assessment Quiz Answers

What is the difference between class attributes and instance attributes?

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

What is the difference between class attributes and instance attributes?

  1.  Instance attributes can be changed, but class attributes cannot be changed
  2.  Class attributes are shared by all instances of the class. Instance attributes may be unique to just that instance
  3.  There is no difference between class attributes and instance attributes
  4.  Class attributes belong just to the class, not to instance of that class. Instance attributes are shared among all instances of a class

Correct Answer:

  •  Class attributes are shared by all instances of the class. Instance attributes may be unique to just that instance

Latest Updates

No posts found in this category.