Q. Which of the following is correct about friend functions?

  • (A) Friend cannot access the members of the class directly
  • (B) Friend functions use the dot operator to access members of a class using class objects
  • (C) Friend functions can be private or public
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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