I have a class (call it "A") that has an object (call it "B") whose code I wrote. I want A to be able to access B's private variables.
In C++ (and probably C#), I would just type "friend class A;" in the definition of B. However, this doesn't seem to work, and from what I can tell from MSDN, the Friend keyword in VB doesn't work that way.
There has to be a way to do this... anyone know how?
In C++ (and probably C#), I would just type "friend class A;" in the definition of B. However, this doesn't seem to work, and from what I can tell from MSDN, the Friend keyword in VB doesn't work that way.
There has to be a way to do this... anyone know how?
Comment