Saint Louis University |
Computer Science 150
|
Dept. of Math & Computer Science |
Topic: Object-Oriented Design
Related Reading: Ch. 1
Due:
9:00am, Tuesday 25 January 2011
Please make sure you adhere to the policies on academic integrity.
From the text: 1.15, 1.23, 1.25.
You do not submit these; feel free to discuss them freely with others.
What data is likely stored when representing the concept of an online shopping cart? Clearly describe both the type and purpose of each piece of data.
Consider object-oriented software for supporting a typical email system. Such a system would likely define a User class, with an instance for each user of their system, and a Message class, with an instance for each individual email message managed by the system.
Describe an initial design for those two classes, suggesting at least three attributes and at least three methods for each. Give careful consideration to which members are appropriate for which class.
Consider the high-level design of two classes: BasicClock representing a basic digital clock, and AlarmClock representing a clock with an alarm. Describe a high-level design using inheritance to model an AlarmClock class as a child of BasicClock. List the attributes and behaviors that you would include in each class.
Exericse 1.22