adplus-dvertising
frame-decoration

Question

A friend function to a class, C cannot access

a.

private data members and member functions

b.

public data members and member functions

c.

protected data members and member functions

d.

the data members of the derived class of C

Answer: (d).the data members of the derived class of C

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. A friend function to a class, C cannot access