Q. If a function is friend of a class, which one of the following is wrong?

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

You must be Logged in to update hint/solution

πŸ’¬ Discussion

πŸ“Š Question Analytics

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