Which Of The Following Describes A Friend Class #23
Which of the following describes a friend class?
This multiple choice question (MCQ) is related to the book/course
gs gs111 OOP Object Oriented Programming Java.
It can also be found in
gs gs111 OOPs Concept & Features - OOPs MCQ: Classes - Quiz No.1.
Which of the following describes a friend class?
Friend class can access all the private members of the class, of which it is a friend
Friend class can only access protected members of the class, of which it is a friend
Friend class don’t have any implementation
Friend class can’t access any data member of another class but can use it’s methods