December 2003
Beginner
288 pages
7h 8m
English
A class diagram is constructed of three different parts: the class name, the attributes, and the methods (constructors are considered methods). The class diagram is essentially a rectangle that separates these three parts with horizontal lines. The book often uses a cabbie metaphor as an illustration. Figure 10.1 shows the UML class diagram representing this class.

This UML diagram corresponds exactly to the following Java code:
/* This class defines a cabbie and assigns a cab */ public class Cabbie { // Place the name of the company here private static String companyName ...Read now
Unlock full access