1. Ohne virtuelle Constructor:
Delphi-Quellcode:
Type
TObject1 = Class
Public
Constructor Create;
Destructor Destroy; Override;
End;
TObject2 = Class(TObject1)
Public
Constructor Create(AchWasWeissIch: Integer); Overload;
Constructor Create(WasAucHImmer: String); Overload;
Destructor Destroy; Override;
End;
2. mit virtuellem Constructor
Delphi-Quellcode:
TObject1 = Class
Public
Constructor Create(whatever: TForm); Virtual;
Destructor Destroy; Override;
End;
TObject2 = Class(TObject1)
Public
Constructor Create(AchWasWeissIch: Integer); ReIntroduce; Overload;
Constructor Create(WasAucHImmer: String); ReIntroduce; Overload;
Destructor Destroy; Override;
End;
Beides getestet in Delphi - what's the problem?