B
Brian Patrick
Hi - I'm trying to implement what a seems to be a very simple concept, but I
can't figure out how exactly it is supposed to be done.
I want to define a class that has sub classes, so I'll explain in a very
simplified manner:
The main class will be called "MyAppClass". This class will have two
methods - "GenericMethod1" and "GenericMethod2". Then I want to have two
sub classes inside MyAppClass called "Section1Class" and "Section2Class".
Section1Class has a method called "DoSection1Work", and Section2Class has a
method called "DoSection2Work"
Then, user of MyAppClass would use it in the following way:
Dim obj as new MyAppClass
obj.GenericMethod1()
obj.Section2Class.DoSection2Work()
Please tell me how I implement this "sub class" idea.
Thanks,
Brian
can't figure out how exactly it is supposed to be done.
I want to define a class that has sub classes, so I'll explain in a very
simplified manner:
The main class will be called "MyAppClass". This class will have two
methods - "GenericMethod1" and "GenericMethod2". Then I want to have two
sub classes inside MyAppClass called "Section1Class" and "Section2Class".
Section1Class has a method called "DoSection1Work", and Section2Class has a
method called "DoSection2Work"
Then, user of MyAppClass would use it in the following way:
Dim obj as new MyAppClass
obj.GenericMethod1()
obj.Section2Class.DoSection2Work()
Please tell me how I implement this "sub class" idea.
Thanks,
Brian