0

Can we point and use private member by pointer from outside class?

In object oriented programming, is it error free to handle the invoke of private members by pointer.

27th Nov 2020, 1:03 PM
Mahesh Bogati
Mahesh Bogati - avatar
2 odpowiedzi
+ 2
27th Nov 2020, 1:28 PM
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~
0_O-[Mägár_Sám_Äkà_Nüllpøïntêr_Èxëcéptïön]~~ - avatar
+ 1
I've read a discussion about this topic long time ago. Too bad it was hard to find. IMO it is not error free, because it was not supposed to be done. When you go against the design, you go on your own ... Anyways, having mentioned pointer, I think Java can be excluded from the tags ☝
27th Nov 2020, 1:08 PM
Ipang