[fpc-pascal] Virtual object methods

Jonas Maebe jonas at freepascal.org
Thu Jun 27 22:20:46 CEST 2019


On 27/06/2019 22:17, Ryan Joseph wrote:
> Why do I get a runtime error with this?

tt.pp(4,6) Warning: Virtual methods are used without a constructor in "TA"
tt.pp(14,6) Warning: Virtual methods are used without a constructor in "TB"

You have to add a constructor and call it, otherwise the object VMT does
not get initialised.


Jonas


More information about the fpc-pascal mailing list