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

Abstract

Specifies whether this is an abstract method.

Usage

To specify that this method is abstract, use the following syntax:

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

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

Details

An abstract method has no implementation and has no executable code generated for it. Abstract methods exist solely for the purpose of defining a method signature (or interface) that can be overridden and implemented within one or more subclasses. Some examples of abstract methods are the various callback methods defined, but not implemented by, in the Caché class library.

Default

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

See Also

FeedbackOpens in a new window