- DelphiTools - https://www.delphitools.info -

Partial Classes in DWScript

Support for partial classes [1] has been added to DWScript: they can be declared as “class partial (TAncestor)” as well as with the Oxygene syntax [2]partial class (TAncestor)” syntax.

Partial classes allow to split the definition and implementation of a class over multiple files, or over multiple sections of the same file. Partial declarations must have the same modifiers (abstract, sealed, static…), must specify the same ancestor (or none), however each partial declaration is allowed to introduce new interfaces and their implementations.

Partial class can have multiple purposes, to quote wikipedia: