Question: Which one of the following options is correct?

Options

A : Friend function can access public data members of the class.

B : Friend function can access protected data members of the class.

C : Friend function can access private data members of the class.

D : All of the above.

Click to view Correct Answer

Previous || Next

OOPS Concepts - General Questions more questions

Which of the following keyword is used to overload an....

What will happen if a class is not having any....

Which inheritance type is used in the class given below?....

Which one of the following is correct about the statements....

Which of the following is an invalid visibility label while....

Which of the following statements is correct in C++?

Which of the following is used to make an abstract....

Which of the following access specifier is used as a....

What is correct about the static data member of a....

Which of the following provides a reuse mechanism?

Constructors and Destructors - General Questions more Online Exam Quiz

Windows 2000 Server - Part 1

Windows NT - Part 1

Constructors and Destructors - General Questions

Functions - General Questions

Objects and Classes - General Questions

References - General Questions

Arrays - General Questions

Complicated Declarations - General Questions