|
-
Sep 16th, 2003, 06:38 AM
#1
Thread Starter
New Member
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|