CS4240: Exam 1 Info
This document last updated on Sunday, Sept. 26, at 3pm.
The test will be held on Thursday, September 30, in class at the
regular class-meeting time.
Readings:
- Shalloway and Trott's
book (on-line in UVa library): Chapters: 1, 2, 5, probably 6 and 7
- Design patterns on http://www.oodesign.com/
- Singleton, Composite, Observer, probably Facade and Adaptor
- Refactoring and code smells: PDF file on web on
refactoring. Website
referred to in HW1.
UML
Class diagrams:
Diagram concepts you don't have to
know for the exam:
- Qualified associations
won't be on the exam.
- Dependencies won't be on
the exam.
- Stereotypes for class categories
won't be on the exam. You might see other simple uses of
stereotypes.
- Tagged values and properties won't be on the exam,
but know how {abstract} is used.
- Constraints won't be on
the exam.
- Derived associations
won't be on the exam.
UML
Sequence diagrams:
Diagram concepts you don't have to
know for the exam:
- The slides also show collaboration
diagrams. These won't be on the exam (though they're simple,
they're less useful IMHO).
- Iteration and control won't be on the exam.
- The return arrow and return values will be on the exam.
So
for sequence diagrams, know the basics: objects, the "time-line",
activation boxes, method calls, showing parameters, showing a return
and a return value, showing a call to a method on the current object.
Design
Patterns:
- Read introduction to design patterns
- Chapter 5 in Shalloway and Trott text
- Wikipedia
- Singleton pattern: slides, also http://www.oodesign.com, and book
pp. 359-363
- Composite patern: slides, also
http://www.oodesign.com/composite-pattern.html
- Observer: slides (including Java attempt to implement this), also
http://www.oodesign.com,
also book pp. 319-328