πŸ“Š C++
Q. Which of the following access specifiers makes a class member accessible only within the class and its friends?
  • (A) public
  • (B) private
  • (C) protected
  • (D) friend
πŸ’¬ Discuss
βœ… Correct Answer: (B) private

Explanation: In C++, 'private' members are only accessible within the class and its friends.

Explanation by: Vinay
In C++, 'private' members are only accessible within the class and its friends.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
85
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Vinay
Publisher
πŸ“ˆ
81%
Success Rate