This preview shows page 1. Sign up to view the full content.
Unformatted text preview: izing itself. The person class must also be responsible for printing itself. Does the person class collaborate with any other class? This depends on how we decide to represent the data in the person class. Do we represent name, address, telephone, and e-mail as simple data items within person or do we represent each as a class? Let’s temporarily represent each as a class. We may rethink this when we implement the design in a programming language. Let’s make each class responsible for initializing and printing itself. Class Name: Name Superclass: Subclasses: Responsibilities Collaborations Initialize itself (name) Print itself String String...
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