Question: What is a friend function in C++?

Options

A : A function which can access all the private, protected and public members of a class

B : A function which is not allowed to access any member of any class

C : A function which is allowed to access public and protected members of a class

D : A function which is allowed to access only public members of a class

Click to view Correct Answer

Next

Cplusplus Programming Friend Function more questions

The set of odd and even positive integers closed under....

Which of the following statements about a frog is not....

What is a hash function?

What is a band-limited function?

What is an inline function?

Lichens are ____________

In which of the following cases will the viral progeny....

What is a Random number generator?

What did Joseph Proust state regarding Law of Definite Proportions?

Performing a shoulder surfing in order to check other’s password....

Chemical Engineering Basics - Part 1 more Online Exam Quiz

C Plus Plus Programming Derived Classes

Cplusplus Programming Exam

Cplusplus Programming Exception Handling 1

Cplusplus Programming Exception Handling 2

Cplusplus Programming File Handling

Cplusplus Programming Function Objects

Cplusplus Programming Functions

Cplusplus Programming Function Templates 2

Cplusplus Programming Functors

Cplusplus Programming Generators