CLASS instruction


Syntax:

  CLASS Biped
  CLASS blob   EXTENDS Object
  CLASS ape    EXTENDS Biped  IMPLEMENTS Sitting, Standing
  CLASS RexxOperators INTERFACE

Introduces a class. See 'Program Structure'.

EXTENDS names a superclass that this class extends, the default being the top of the class hierarchy ('Object'). Class 'ape' in the example is therefore a subclass of 'Biped', which is a subclass of 'Object'.

IMPLEMENTS lists one or more interface classes that this class implements (see Java documentation for a description of interfaces). The INTERFACE keyword declares a class to be an interface.

Several other keyword options are allowed:

Some keywords on the CLASS instruction should be considered experimental, or only applicable to the Java environment; they may end up being 'implementation defined'.


[ previous section | contents | next section ]

From 'netrexx.doc', version 0.75.
Copyright(c) IBM Corporation, 1996. All rights reserved. ©