0

Is there any way to access private members outside the class and without the use of functions?

4th Dec 2016, 5:09 PM
somesh bhinda
somesh bhinda - avatar
4 odpowiedzi
+ 1
without getter and setter its impossible. this is the use of private member.
4th Dec 2016, 6:20 PM
Max_N
Max_N - avatar
+ 1
sure but you said without functions :D
4th Dec 2016, 6:22 PM
Max_N
Max_N - avatar
+ 1
oh.. forgot about it :)
4th Dec 2016, 6:23 PM
somesh bhinda
somesh bhinda - avatar
0
but we can use friend function
4th Dec 2016, 6:21 PM
somesh bhinda
somesh bhinda - avatar