Do classes and interfaces go in individual files?
identicon
kodeboi@547c3afc
DISCUSSION OF ORIGIN

kodeboi@547c3afc Saturday 30th March 2019, 14:17

Do classes and interfaces go in individual files?

Trying to use interfaces and classes but I do not know how to structure the files in a delphi project. I did learn that  the interface section in a unit file is not the same as an interface that a class can extend-hah! Should each interface go in it's own file? How about classes? I have found toy programs like 'hello world' irritating and useless. I want a test project that can be expanded as I learn new things. A working example project (console only) would be a big help.
thanks,
DISCUSSION OF ORIGIN
identicon
Guido

Guido Tuesday 28th May 2019, 13:57

An "object interface", or simply "interface", defines methods that are implemented by a class. Just like a class, an interface can go in its own unit, but it can also go in a unit together with other interfaces and even classes.
Last modified: Tuesday 28th May 2019, 13:58
Suggested Topics View / Reply Forum
unused_username started Database migration 3.5K / 1 Database
DelphiSince@2f63ec54 started Bug Report 1K / 1 General
webmaster@cfcc0ed1 started Delphi Database tutorials 2.5K / 0 Database
webmaster@cfcc0ed1 started Welcome to DelphiLand's new Forum! 3.8K / 1 News