πŸ“Š C++
Q. In C++ a class can allow non-member functions and other classes to access its own private data, by making them as _________
  • (A) public
  • (B) friend
  • (C) protected
  • (D) private
πŸ’¬ Discuss
βœ… Correct Answer: (B) friend

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
166
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
85%
Success Rate