[fpc-pascal] Inherited and not virtual/overridden procedures
Bart
bartjunk64 at gmail.com
Wed Jun 12 13:33:58 CEST 2013
On 6/12/13, Jonas Maebe <jonas.maebe at elis.ugent.be> wrote:
> So that it would still have the same behaviour if you changed the variable
> declaration to
>
> var
> FooChild: TFoo;
If I change FooChild to TFoo (and instantiate with TFoo.Create) the
outut is always the same, wether or not I use virtual for TFoo.Bar and
wether or not I use override for TFooChild.Bar declarations.
In case of FooChild: TFoo it outputs
"TFoo.bar"
In case of FooChild: TFooChild it outputs
"TFoo.Bar"
"TFooChild.Bar"
in all scenario's I could think of.
Bart
More information about the fpc-pascal
mailing list