Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions page (login required).

Final

Specifies whether this method is final (cannot be overridden in subclasses).

Usage

To specify that a method is final, use the following syntax:

Method name(formal_spec) As returnclass [ Final ]
{
   //implementation
}

Otherwise, omit this keyword or place the word Not immediately before the keyword.

Details

A class member that is marked as final cannot be overridden in subclasses.

Default

If you omit this keyword, the method is not final.

See Also

Feedback