Kombinier doch einfach beide Ansätze:
Delphi-Quellcode:
Type
TObjectA = class
strict private const
cTestValue = 'aaa';
public
Function testvalue: String; virtual;
Procedure MachWasMitTestValue;
end;
TObjectB = class(TObjectA)
strict private const
cTestValue = 'bbb';
public
Function testvalue: String; override;
end;
function TObjectA.testvalue: String;
begin
Result := cTestValue;
end;
function TObjectB.testvalue: String;
begin
Result := cTestValue;
end;