The Name of the Class

Figure 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.

Get Object-Oriented Thought Process, The, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.