Example of Inheritance from Parent Class to a Child Class
Hi
can anyone give me a code example of how to inherit from a parent class to a child class.
Example:
Parent Class:
CEmployee.vb
Properties: EmpNo, FirstName, LastName, PhoneNo
Methods: Pay, Report
Child Classes:
CPartTimeEmp.vb
CFullTimeEmp.vb
How can i inherit the properties and methods of the parent class (CEmployee) to the child classes (CPartTimeEmp, CFullTimeEmp) how should I start the child classes codes? What will the format be? Any example given will be much appreciated.. Thanks in advance...
:)