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

πŸ‘οΈ
93
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
94%
Success Rate