The Name of the Class

 <  Day Day Up  >  

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.

graphics/04fig01.gif

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  >  


Object-Oriented Thought Process
Object-Oriented Thought Process, The (3rd Edition)
ISBN: 0672330164
EAN: 2147483647
Year: 2003
Pages: 164
Authors: Matt Weisfeld

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net