adplus-dvertising
frame-decoration

Question

Which of the following describes a friend class?

a.

Friend class can access all the private members of the class, of which it is a friend

b.

Friend class can only access protected members of the class, of which it is a friend

c.

Friend class don’t have any implementation

d.

Friend class can’t access any data member of another class but can use it’s methods

Answer: (a).Friend class can access all the private members of the class, of which it is a friend

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following describes a friend class?