Question : Class Behavior

Greetings,

First time using inheritance. A Person class is generated and then an Instructor class and Student class inherit the Person class.  I can declare and utilize the classes from a form, but if I create a seperate class called PersonBusiness and try to instantiate the classes, they are not recognized.  This appears that the classes can only be instantiated from a form.  How about a form in a different project or a class in a different project (assuming a reference is generated)

Thanks
Vaughn Whitehead

Answer : Class Behavior

You created a class Person inside the clsHCCPeople, which you may or may not have wanted to do.

In order to access it, you have to do this:

Public Class clsPersonBusinsess
    Dim hccStudent As clsHCCPeople.Student

End Class

Otherwise, move the Student outside of the class definition for clsHCCPeople
Random Solutions  
 
programming4us programming4us