If Class B Inherits Class A Privately And Class B Has A Friend #206

If class B inherits class A privately. And class B has a friend function. Will the friend function be able to access the private member of class A?

Online Quiz 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 Access Specifiers - OOPs MCQ: Access Specifiers - Quiz No.2.

If class B inherits class A privately. And class B has a friend function. Will the friend function be able to access the private member of class A?

Similar question(s) are as followings:



Online Quizzes of gs111 OOP Object Oriented Programming Java

Choose an organization

Theme Customizer

Gaussian Texture



Gradient Background