A

Admin • 833K Points
Coach

Q. Which of the following is true about class variables?

  • (A) They are unique for each instance
  • (B) They are shared across all instances
  • (C) They can only be accessed by class methods
  • (D) They must be private
  • Correct Answer - Option(B)
  • Views: 32
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Class variables are shared by all instances of the class.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.