Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
Delphi 10.2 Tokyo Professional
|
AW: virtuelle Methode "nicht" überschreiben
27. Jan 2011, 10:22
Hallo,
Delphi-Quellcode:
type
TA = class
procedure ABC; virtual;
end;
TB = class(TA)
procedure ABC; override; final;
end;
TC = class(TB)
procedure ABC; override; // [DCC Fehler] Unit1.pas(33): E2352 Eine final-Methode darf nicht überschrieben werden
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."
|