Private Members

How can we access private members of classs?

Questions by Pankaj07

Showing Answers 1 - 12 of 12 Answers

Manish Rai

  • Nov 21st, 2014
 

By using friend functionality .

  Was this answer useful?  Yes

rdl

  • Feb 16th, 2015
 

by using member functions of the same class

  Was this answer useful?  Yes

Nishikant

  • Feb 25th, 2015
 

Typecost the object into int * and access the member in the same order they define.

  Was this answer useful?  Yes

sharmy

  • Mar 1st, 2015
 

we can access the private members of the class using friend function

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions