This preview shows page 1. Sign up to view the full content.
Unformatted text preview: card for this class, but mark that it most likely will be implemented using a library class. Responsibility Algorithms Person class There are two responsibilities to be decomposed: initialize and print. Because each of the fields of the class is a class, we can just let each initialize and print itself. Print name.Print() address.Print() telephone.Print() email.Print() Initialize name.Initialize() address.Initialize() telephone.Initialize() email.Initialize()...
View Full Document
This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.
- Fall '10