Autor Beitrag
Allesquarks
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 510

Win XP Prof
Delphi 7 E
BeitragVerfasst: So 15.01.06 16:39 
Kann ich einer abstrakten Basisklasse ein Interface zuweisen, so dass das dann alle Nachfahren erben aber natürlich erst in diesen implementiert wird. Oder muss ich jede abgeleitete Klasse als Co-Klasse des Interfaces schreiben?
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 15.01.06 16:47 
IMHO sollte das gehen.

Du musst allerdings IMHO die Funktionsdeklaration der Interface-Methoden wiederholen UND diese als Virtual Abstract kennzeichnen ... Ansonsten sehe ich nicht, warum es nicht gehen sollte ...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.