You are not logged in.

#1 2015-09-11 05:54:07

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

Friend Class:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … -Placement

Question:
A friend class in C++, can access the "__________" members of the class in which it is declared as a friend:

Option A):
public and protected
Option B):
private and protected
Option C):
Public
Option D):
private and public

Correct Answer is Option B):
private and protected


Failure is the first step towards seccess.

2015-09-11 05:54:07

Advertisement
Ads By Google

Re: Friend Class:



Board footer