adplus-dvertising
frame-decoration

Question

Which rule will not affect the friend function?

a.

private and protected members of a class cannot be accessed from outside

b.

private and protected member can be accessed anywhere

c.

protected member can be accessed anywhere

d.

none of the mentioned

Answer: (a).private and protected members of a class cannot be accessed from outside

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which rule will not affect the friend function?