Originally posted by Anupama Ponnapalli:
Reflection is used here and properties of the sub-class that are not present in the super-class will also be set. Try it out.
Yeah, I tried it out and it proves you are right, the properties of the sub-class are also set. The following is my testing code. It shows that the workID property of Employee class is also set!!!
[ March 18, 2007: Message edited by: Jon Lee ]
[ March 18, 2007: Message edited by: Jon Lee ]
[ March 18, 2007: Message edited by: Jon Lee ]