Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
3
Task/Abstract-type/Delphi/abstract-type-1.delphi
Normal file
3
Task/Abstract-type/Delphi/abstract-type-1.delphi
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
TSomeClass = class abstract (TObject)
|
||||
...
|
||||
end;
|
||||
13
Task/Abstract-type/Delphi/abstract-type-2.delphi
Normal file
13
Task/Abstract-type/Delphi/abstract-type-2.delphi
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
type
|
||||
TMyObject = class(TObject)
|
||||
public
|
||||
procedure AbstractFunction; virtual; abstract; // Your virtual abstract function to overwrite in descendant
|
||||
procedure ConcreteFunction; virtual; // Concrete function calling the abstract function
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
procedure TMyObject.ConcreteFunction;
|
||||
begin
|
||||
AbstractFunction; // Calling the abstract function
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue