docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  Class Definition Reference

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


Specifies whether this class is final (cannot have subclasses).
Usage
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.
Details
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).
Default
If you omit this keyword, the class definition is not final.
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 06:44:53