On Apr 30, 5:54*am, TheVillageCodingIdiot
<whosyodaddy1...@hotmail.com> wrote:
> well basically what im doing is creating a class to handle importing
> users and there dependents into our database and would like to
> separate the methods for importing the users and importing there
> dependents. sorry about the the terminology, i did mean nested
> classes. I would like to avoid having to create multiple instances in
> the app code. ie not have to create a employee class and then create a
> dependent class. something like this.
>
> dim cls as new class1
>
> cls.employee.AddEmployee("John", "Doe", "CompanyName")
> cls.dependent.AddDependent("Jane", "Doe", "EmployeeID")
If you want the syntax as above, "employee" will have to be a property
of Class1, and, most likely, you'll have to define a special class for
it, and instantiate that in Class1. There's no other way.
|