πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) They are shared across all instances

Explanation: Class variables are shared by all instances of the class.

Explanation by: Mr. Dubey
Class variables are shared by all instances of the class.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate