Empty Methods

From The Oxygene Language Wiki
Jump to: navigation, search

This is a Language topic about Oxygene
 

Language Topics Introduction | Structured Overview | Grammar | Keywords | Functions



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

Personal tools
Namespaces

Variants
Actions
Navigation
Getting Started
Sections
If you know
More
Toolbox