| Class Object and Method |
| |
| The Class Declaration |
| |
|
| |
| public |
| The public modifier declares that the class can be used
by any class regardless of its package. |
| |
| abstract |
| Declares that the class cannot be instantiated. |
| |
| final |
| Declares that the class cannot be subclassed. |
| |
| class Name Of Class |
| The class keyword indicates to the compiler that
this is a class declaration and that the name of the class is NameOfClass. |
| |
| extends Super |
| The extends clause identifies Super as the superclass of
the class, thereby inserting the class within the class hierarchy |
| |
| implements Interfaces |
| To declare that our class implements one or more
interfaces, use the keyword implements followed by a comma-delimited
list of the names of the interfaces implemented by the class |
| |
| |
|
|
| |
| |