Class definition
Syntax
Nested classes are not allowed; classes are only allowed in package blocks and top-level region.
-
ClassDefinition :
-
class IdentifierName TypeParametersopt Inheritance Block
-
TypeParameters :
-
. < TypeParameterList GenericGreaterThan
-
TypeParameterList :
-
TypeParameter
TypeParameterList , TypeParameter
-
TypeParameter :
-
Identifier
Class inheritance
Syntax
-
Inheritance :
-
«empty»
extends TypeExpression
implements TypeExpressionList
extends TypeExpression implements TypeExpressionList