< Day Day Up > |
The Name of the ClassFigure 4.1 shows the class that will be dissected. Plain and simple, the name of the class in our example, Cabbie , is the name located after the keyword class : public class Cabbie { } Figure 4.1. Our sample class.
Using Java Syntax Remember that the convention for this book is to use Java syntax. The syntax might be somewhat different in C# or C++, and totally different in other OO languages such as Smalltalk. The class Cabbie name is used whenever this class is instantiated . |
< Day Day Up > |