Class Member Modifiers
From RemObjects Software
This is a Oxygene Language Feature topic
Feel free to add your notes to this topic below.
Class Member Modifiers consist of directives that control virtuality plus others that are independent of each other:
Virtuality Modifiers
virtual override final reintroduce
Some rules about how these directives can be used in combination:
- use abstract or empty, not both
- override and reintroduce are mutually exclusive and are only valid if the method's ancestor is virtual
- external cannot be mixed with other directives
General Modifiers
abstract empty (cannot specify both)
async external locked unsafe (once only in any order)
implements (must be declared last)
There are also different restrictions for fields, methods, properties and events and the following directives are supported:
- fields: readonly, implements
- methods: virtual, override, abstract, reintroduce, final, empty, locked, async, external, unsafe, implements, partial
- properties: virtual, override, abstract, reintroduce, final, locked, implements, default, readonly
- events: virtual, override, abstract, reintroduce, final, locked, implements
See Also
Product: RemObjects Oxygene (formerly known as Chrome)
Current version: 3.0
Previous Versions: 'Joyride' (2.0), 'Floorshow' (1.5), 'Adrenochrome' (1.0)
Glossary — Keywords — Language Features — Platform Features — Samples — Articles — How To — Issues
Categories: Text | Oxygene | Language | Feature
