Programming and Problem Solving with Java

(やまだぃちぅ) #1
6.4 The CRC Card Design Process | 283

Class Name: User Interface Superclass: Subclasses:


Responsibilities Collaborations
Find address for (name)
.
.
.

Entry, Address


Class Name: Book Superclass: Subclasses:


Responsibilities Collaborations

Find entry with (name)


.
.
.

Entry, Address
return Entry

Class Name: Entry Superclass: Subclasses:


Responsibilities Collaborations

Know name None
return Name

Know address None
return Address

Know phone number None
return Phone

Know birthday None
return Date

Figure 6.6 The CRC Cards for Entry, Book, and User Interface

Free download pdf