Class A extends Control and creates a "new" Size property hiding Size from
the Control class.
A method M from another class (not related to A or Control) has a parameter
of type Control.
Question: If an A object is passed to M, is there a way to call Size from A
instead of Size from Control ?
Chris - 10 Aug 2005 21:56 GMT
> Class A extends Control and creates a "new" Size property hiding Size from
> the Control class.
> A method M from another class (not related to A or Control) has a parameter
> of type Control.
> Question: If an A object is passed to M, is there a way to call Size from A
> instead of Size from Control ?
I believe that M would have to cast the control as object A first...
Best to inherit M and override control method to accept object A. If
you can that is...
Chris