> Short answer: you can't. The same would happen with normal classes.
>
> Long answer: You could add an additional method "Next" to your "TIntTree"
> which returns a "TIntTree" and just do "Result := TIntTree(inherited
> Next);" there.
>
> Why are you subclassing in this case anyway?
>
Thanks, I will inherit the method.  I need to add features in the
sub-class. This empty TIntTree is just to show the problem.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to