Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new window

For information on migrating to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).


Specifies whether this method can be inherited in subclasses.


To specify that this method cannot be inherited in subclasses, use the following syntax:

Method name(formal_spec) As returnclass [ NotInheritable ]

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


This keyword specifies that this method cannot be inherited in subclasses.


While having a member not be inheritable by its subclasses can be very useful in some cases, the keyword should be used rarely and judiciously, as it breaks the inheritance contract.


If you omit this keyword, this method is inheritable.

See Also

FeedbackOpens in a new window