Skip to content

Class Declarations

memorylorry edited this page May 13, 2018 · 4 revisions

A class declaration specifies a a new named reference type. Here has 2 kinds of reference types:

  1. NormalClassDeclaration
  2. EnumDeclaration

Class Modifier

A class Declaration may include some modifiers:

ClassModifier:

[one of public|protected|private] [one of abstract|static|final|strictfp] ClassName{}

All modifiers are divided into two parts. [public|protected|private] control who can access class's variables and methods. Another part of it is [abstract|static|final|strictfp]. These define the type of class. Like Abstract class means it could has abstract method(do not has method body, rely on child class).

HOME

  1. Type, Value, Variable
  1. Class
  2. Interface
  3. Modifier
  4. Arrays
  5. Exception
  6. Threads and Locks

Clone this wiki locally