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).


Specifies whether this class is final (cannot have subclasses).


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

Class MyApp.Exam As %Persistent [ Final ]  { //class members }

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


If a class is final, it cannot have subclasses.

Also, if a class is final, the class compiler may take advantage of certain code generation optimizations (related to the fact that instances of a final class cannot be used polymorphically).


If you omit this keyword, the class definition is not final.

See Also