InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference

Class Definition Reference
Previous section           Next section
InterSystems: The power behind what matters   

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 ] 
{    //implementation }
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

Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-16 05:50:13