[fpc-pascal] Classes with abstract methods
Michael Van Canneyt
michael at freepascal.org
Mon Jan 14 10:27:04 CET 2008
On Mon, 14 Jan 2008, Damien Gerard wrote:
>
> With fpc you can get "myfile.pas(77,47) Warning: Constructing a class "xxxx"
> with abstract methods"
> I just would like to know why it is allowed to build classes with abstract
> methods. AFIK it is different from other compilers and it is a bit strange for
> me.
Delphi gives exactly the same warning.
It is allowed to create such instances: as long as you don't call any of the
abstract methods, there will be no problem.
Michael.
More information about the fpc-pascal
mailing list