Nested classes are classes with in classes.In sample below “ClsNested” class has a “ChildNested” class nested inside it.
Public Class ClsNested
Public Class ChildNested
Public Sub ShowMessage()
MessageBox.Show(“Hi this is nested class”)
This is the way we can instantiate the nested class and make the method call.
Dim pobjChildNested As New ClsNested.ChildNested()
Note:-In CD the above sample is provided in “WindowsNestedClasses”.