![]() |
Unterschied object <-> class
Hi.
Was ist eigentlich der Unterschied zwischen object und class? Bis auf die Create / Destroy. Wann nutzt man object, wann class? Folgendes Beispiel:
Delphi-Quellcode:
-> Passiert das gleiche!
type TObj = object
public procedure ShowIt; end; type TCls = class public class procedure ShowIt; end; [...] procedure TObj.ShowIt; begin ShowMessage('It'); end; class procedure TCls.ShowIt; begin ShowMessage('It'); end; Also wann object / class und warum? Thx! |
Re: Unterschied object <-> class
Zitat:
Zitat:
|
Re: Unterschied object <-> class
Ok, prinzipiell beantwortet das meine Frage :-D
Dankeschön |
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:47 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz