DanielWuVB
New member
- Joined
- Jun 7, 2007
- Messages
- 3
- Programming Experience
- Beginner
Hi ! I'm new and self studying VB.NET. can someone explain to me if I have a parent class -Person and subclass employee. why should I coded as follow(from a book)
Dim objPerson as Person = New Employee
why not just do
Dim objPerson as Employee = New Employee
since Class Employee is subclass of Person. what's good for that ?
Thanks
Daniel
Dim objPerson as Person = New Employee
why not just do
Dim objPerson as Employee = New Employee
since Class Employee is subclass of Person. what's good for that ?
Thanks
Daniel