In this question you see that is possible to create an abstract class adding the abstract keywrod. I am translating a project in Delphi but I see that it allows the creation of an abstract class. This is the code:
type
TCableSPF = class abstract
//code
end;
This is an abstract class of course and I have a lot of subclasses that implement it. By the way I see that is it possible to create an instance of this like;
a := TCableSPF.Create;
When I try to call its methods that are virtual and abstract I get the error and this is ok but can I prevent the creation of the class? Or Delphi allows this by default? thanks for the help
{$WARN CONSTRUCTING_ABSTRACT ERROR}, however, I took a look at RADStudio's Tokyo documentation (referenced in the link showed by @SebastianProske), and unfortunately found the following note: "Delphi allows instantiating a class declared abstract, for backward compatibility, but this feature should not be used anymore". :-/