2.4 Abstract Members
'abstract [keywords]name':params- Declare an abstract method name as having params parameters, having optional additional keywords keywords.
// declares abstract method 'connect' expecting the two parameters, 'host'
// and 'path'
{ 'abstract connect': [ 'host', 'path' ] }
- Abstract members are defined using the
abstractkeyword.- Except in interfaces (see Interfaces), where the
abstractkeyword is implicit.
- Except in interfaces (see Interfaces), where the
- Currently, only methods may be declared abstract.
- The subtype must implement at least the number of parameters declared in
params, but the names needn't match.
- Each name in params must be a valid variable name, as satisfied by the
regular expression
/^[a-z_][a-z0-9_]*$/i. - The names are use purely for documentation and are not semantic.
- Each name in params must be a valid variable name, as satisfied by the
regular expression
Abstract members may only be a part of one of the following: