I'm new to JAVA.
Is there an equivalent to C/C++ friend classes
where you can declare a certain class a friend of another, so that he has access even to its private data members?
I know about protected (same in C++) but that's not the same. I need acces from an 'unrelated' class.
Thanks a lot for your help and time. Avendeval
Is there an equivalent to C/C++ friend classes
where you can declare a certain class a friend of another, so that he has access even to its private data members?
I know about protected (same in C++) but that's not the same. I need acces from an 'unrelated' class.
Thanks a lot for your help and time. Avendeval