INTERFACES
Reference
Syntax
INTERFACES ifac
{ { [ABSTRACT METHODS meth1 meth2 ...]
[FINAL METHODS meth1 meth2 ...] }
| [ALL METHODS {ABSTRACT|FINAL}] }
[DATA VALUES attr1 = val1 attr2 = val2 ...].
Effect
Includes an interface in the public
visibility section of a class or in another interface.
Additions
-
ABSTRACT METHODS meth1 meth2 ...
Makes the specified
instance methods
meth1, meth2, ...abstract when implementing the interface in a class.
-
FINAL METHODS meth1 meth2 ...
Makes the specified
instance methods meth1, meth2, ... final when implementing the interface in a class.
-
ALL METHODS {ABSTRACT|FINAL}
Makes all instance methods abstract or final when implementing the interface in a class.
-
DATA VALUES attr1 = val1 attr2 = val2 ...
Assigns
start values
val1, val2, ... to instance attributes
attr1, attr2, ... when implementing the interface in a class.