Auto generate instances
I have a class, Let's say Public Class Employee, and I want to make an instance of this class (Dim emp1 As New Employee) every time the user wish for it, for example with a button click.
Also, after the creation of the object (instance), how can I have access to the particular object (emp1.Age), if I don't know it's name?
This may be a simle thing, but I don't know how it's done.
I have a class, Let's say Public Class Employee, and I want to make an instance of this class (Dim emp1 As New Employee) every time the user wish for it, for example with a button click.
Also, after the creation of the object (instance), how can I have access to the particular object (emp1.Age), if I don't know it's name?
This may be a simle thing, but I don't know how it's done.