Q. The members of a class in C++ are by default __________

  • (A) private
  • (B) protected
  • (C) public
  • (D) public and protected
πŸ’¬ Discuss
βœ… Correct Answer: (A) private
Explanation: By default, all data members and function members of the class are private.
Explanation by: Dharmendra Sir
By default, all data members and function members of the class are private.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
305
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Dharmendra Sir
Publisher
πŸ“ˆ
87%
Success Rate