Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#5

AW: (Falsche?) Warnung beim Überladen eines Konstruktors

  Alt 13. Jun 2019, 14:08
Dann hab ich für TAbleitung 3 Konstruktoren (2x (AOwner: TComponent)).

Aber so klappt es:
Delphi-Quellcode:
type
  TBasis = class
  public
    constructor Create(AOwner: TComponent); virtual;
  end;

  TAbleitung = class(TBasis)
  public
    constructor Create(AOwner: TComponent; A,B: string); reintroduce; overload;
  end;
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat