J
Joel Moore
I'm a little confused here. If I have the following:
Public ClassA
Friend varA As Integer
Private varB As Integer
Private ClassB
Public Sub MethodA()
' How can I access varA and varB here?
End Sub
End Class
End Class
is there anyway for the nested class "ClassB" to access the private or
friend variables contained in "ClassA"? Some sort of identifier? Or do I
need to pass a reference to ClassA in ClassB's constructor (or whereever)?
Thanks,
Joel Moore
Public ClassA
Friend varA As Integer
Private varB As Integer
Private ClassB
Public Sub MethodA()
' How can I access varA and varB here?
End Sub
End Class
End Class
is there anyway for the nested class "ClassB" to access the private or
friend variables contained in "ClassA"? Some sort of identifier? Or do I
need to pass a reference to ClassA in ClassB's constructor (or whereever)?
Thanks,
Joel Moore