< Java Programming < Keywords 
      class is a Java keyword
which begins the declaration and definition of a class.
The general syntax of a class declaration, using Extended Backus-Naur Form, is
class-declaration ::= [access-modifiers]classidentifier[extends-clause] [implements-clause] class-body extends-clause ::=extendsclass-name implements-clause ::=implementsinterface-names interface-names ::= interface-name [,interface-names] class-body ::={[member-declarations]}member-declarations = member-declaration [member-declarations] member-declaration = field-declaration | initializer | constructor | method-declaration | class-declaration
The extends word is optional. If omitted, the class extends the Object class, as all Java classes inherit from it.
See also:
    This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.