Question: Which of the following statement is correct with respect to the use of friend keyword inside a class?

Options

A : A private data member can be declared as a friend.

B : A class may be declared as a friend.

C : An object may be declared as a friend.

D : We can use friend keyword as a class name.

Click to view Correct Answer

Previous || Next

Objects and Classes - General Questions more questions

Which of the following two entities (reading from Left to....

How can we make a class abstract?

Which of the following statements is correct when a class....

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

Which of the following access specifies is used in a....

Which of the following keywords is used to control access....

Which of the following can access private data members or....

Which of the following type of data member can be....

Which of the following also known as an instance of....

Constructor is executed when _____.

Constructors and Destructors - General Questions more Online Exam Quiz

Unix - Part 1

Windows 2000 Server - Part 1

Windows NT - Part 1

Constructors and Destructors - General Questions

Functions - General Questions

OOPS Concepts - General Questions

References - General Questions

Arrays - General Questions