πŸ“Š C++
Q. If a function is friend of a class, which one of the following is wrong?
  • (A) It can have access to all members of the class, even private ones.
  • (B) Friend functions are members of a class.
  • (C) Friend functions are not members of a class, they are associated with it.
  • (D) A function can only be declared a friend by a class itself.
πŸ’¬ Discuss
βœ… Correct Answer: (B) Friend functions are members of a class.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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