Friends in VB.NET vs C++

  • Thread starter Thread starter Dave Cousineau
  • Start date Start date
D

Dave Cousineau

in c++ i could declare classA a friend of classB, and this
would allow classA to access anything in classB
can i do this in VB?
i notice that the friends keyword functions more like the
old Global keyword
 
yeah ok
that is close then, but i dont want _everything_ to be
able to access the data, just one particular class

i have a class and a form object/class
the form is intended to fill out the information required
for an instance of the class
it would be nice if i could give the form access to the
classes data members, since it has a special relationship
with the class
 
Back
Top