CLASS instruction


Syntax:

  CLASS Biped
  CLASS blob   EXTENDS Object
  CLASS ape    EXTENDS Biped  IMPLEMENTS Sitting, Standing
  CLASS calc   EXTENDS Rexx   USES Math
  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.

USES lists one or more classes which will be searched for constants, static properties, and functions when the first part of a term is unresolved.

Several other keyword options are allowed:


[ previous section | contents | next section ]

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