Delphi abstract class avoid implementation

Viewed 1136

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

1 Answers
Related