1.

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» B. Friend class can only access protected members of the class, of which it is a friend


Discussion

No Comment Found