Class Declaration
A class declaration specifies a new named reference type. There are two kinds of
class declarations - normal class declarations and enum declarations:
ClassDeclaration:
NormalClassDeclaration
EnumDeclaration
NormalClassDeclaration:
ClassModifiersopt class Identifier TypeParametersopt Superopt
Interfacesopt ClassBody
1)The rules in this section apply to all class declarations unless this specification
explicitly states otherwise. In many cases, special restrictions apply to enum declarations.
Enum declaration are described in detail in .
The Identifier in a class declaration specifies the name of the class. A compile-
time error occurs if a class has the same simple name as any of its enclosing
classes or interfaces.
A class declaration specifies a new named reference type. There are two kinds of
class declarations - normal class declarations and enum declarations:
ClassDeclaration:
NormalClassDeclaration
EnumDeclaration
NormalClassDeclaration:
ClassModifiersopt class Identifier TypeParametersopt Superopt
Interfacesopt ClassBody
1)The rules in this section apply to all class declarations unless this specification
explicitly states otherwise. In many cases, special restrictions apply to enum declarations.
Enum declaration are described in detail in .
The Identifier in a class declaration specifies the name of the class. A compile-
time error occurs if a class has the same simple name as any of its enclosing
classes or interfaces.
0 comments:
Post a Comment