In general, Java class declarations take the form
AccessSpecifier Modifiers class NewClass extends SuperclassName implements InterfaceName
where everything in italics is optional. As you can see, there are five properties of the class that can be defined in the declaration:
→ See Chapter 9, "Interfaces,"
The access specifier in a class declaration determines how visible a class is to other classes. The specifiers that apply to classes are similar to the method access specifiers discussed in Chapter 4, "Methods and Exceptions." Although specifiers are not of primary importance while developing an individual class, they become very important ...