I have an abstract base class and derived class:
type TInterfaceMethod = class
public
destructor Destroy; virtual; abstract;
procedure Calculate; virtual; abstract;
procedure PrepareForWork; virtual; abstract;
end;
type ConcreteMethod = class(TInterfaceMethod)
private
matrix: TMinMatrix;
public
constructor Create(var matr: TMinMatrix);
procedure Calculate; override;
procedure PrepareForWork; override;
destructor Destroy;
end;
Do I really need to make base-class destructor virtual, as in C++, or it`ll be OK if it is not virtual?
By the way, did I use "override" right or I need "overload"?