Programming Languages C++ Objective
Mar 20, 2013

Which of the following statements is incorrect?

Choose the correct answer:
A) Friend keyword can be used in the class to allow access to another class.
B) Friend keyword can be used for a function in the public section of a class.
C) Friend keyword can be used for a function in the private section of a class.
D) Friend keyword can be used on main().
Detailed Explanation

Option D is the right answer.

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback