@Panseer
You told that whatever is your reference, it can refer to only that class's members only, even though it's referring to any sub class's object, right?
Now, see this code..
"h.print()" this statement should print HELLO FROM D...<BR>, but that's not the case everytime.
Your views will help me in clearing my doubts.
Thanks,