-
Notifications
You must be signed in to change notification settings - Fork 0
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:
- NormalClassDeclaration
- EnumDeclaration
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).
Here an wrong static class case: Why is it wrong?
- Type, Value, Variable
- Class
- Interface
- Modifier
- Arrays
- Exception
- Threads and Locks