B
Bob Day
Using VS2003, VB.NET, MSDE...
I am looking at a demo program that, to my surprise, has nested classes,
such as the example below. I guess it surprised me becuase you cannot have
nested subs, and I am not sure why you would want nested classes anyway.
Is there a URL that explains the advantages to nested classes, when they
would be used, etc? What are your thoughts?
Also, if a Class has nothing before it (i.e. no Public or Private, etc.), is
it automatically public or private?
Thanks!
Bob Day
Public Class x
Public Class y
Public Sub g()
End Sub
End Class
End Class
I am looking at a demo program that, to my surprise, has nested classes,
such as the example below. I guess it surprised me becuase you cannot have
nested subs, and I am not sure why you would want nested classes anyway.
Is there a URL that explains the advantages to nested classes, when they
would be used, etc? What are your thoughts?
Also, if a Class has nothing before it (i.e. no Public or Private, etc.), is
it automatically public or private?
Thanks!
Bob Day
Public Class x
Public Class y
Public Sub g()
End Sub
End Class
End Class