Empty Methods

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.



In method declarations can be used the empty directive to signify that no method implementation will be provided. In contrast to abstract methods, the compiler will generate an empty body for the method, and the method can be called.

This is helpful when adding methods in base classes that can be overridden in descendants but aren't required. It is also helpful when defining a class interface that will later be fleshed out and implemented.

For out and result parameters, nil will be returned for all reference types, and 0/false for all value types.

Example

method ImplementMeIfNeeded; virtual; empty;

Applies to


See Also


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox