On 23 Nov 2011, at 22:48, Jesus Reyes wrote:

> in the following example The output is:
> cls class is TFoo
> TObj.create
> 
> where I would expect:
> cls class is TFoo
> TObj.create
> TFoo.create
> 
> ie the TFoo.constructor is not called, is this normal/expected?

Yes. You have to use a virtual constructor if you wish to override in a child 
class, just like with regular methods and class methods.


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

Reply via email to