Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions
Technical Discussion :: C++

8 / 184

How can we access private members of a classs?


By using a friend function.
A friend function has access to all private and protected members of the class for which it is a friend.

Asked In :: TCSiGateVirtusaSyntel Inc.Accenture

Post Your Answer Here:

Rate This: +6 -0      +1

Post Your Reply Here:

Alert me

Report Error

Please Login First Click Here

Most Popular Qs.