[Lazarus] Check if an abstract method is implemented or not
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Jan 24 14:25:29 CET 2013
Xiangrong Fang <xrfang at gmail.com> hat am 24. Januar 2013 um 14:03 geschrieben:
> This is a clean solution. And as a matter of fact, the compiler does NOT warn
> me while instantiate class with abstract method.
Normally the compiler warns for each abstract method. For example, this creates
5 warnings:
TStrings.Create;
If not then please create a bug report.
> This is different than Java, in which you must implement all abstract method
> while inherits from an abstract class.
>
> Why I shall not instantiate a sub-class that has not fully implemented
> abstract methods of its parent class?
Well, you can shoot yourself in the foot. ;)
Mattias
More information about the Lazarus
mailing list