On 6/12/13, Jonas Maebe <jonas.ma...@elis.ugent.be> wrote:

> Now change the variable type to TFoo but keep instantiating it using
> TFooChild.Create (like I originally suggested). Having that work is
> the whole point of polymorphism and why virtual/override exist.

I didn't even know that was possible....

OK now I see the difference.
Not making them virtual/ovverride the shows only TFoo.Bar, whilst
making them virtual/override shows the TFooChild.Bar implementation.

Bart
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to