
Object Oriented Design Mid Term Edgell
WVU Software Engineering 12/04/20
Fall 2016
All information that you provide as an answer will be graded.
Given the following questions provide clear unambiguous answers. Be sure to answer the entire question.
Carefully consider alternatives and justify your answers. Precise answers are expected.
You may use your book, notes, other books, notes, and any other resources available to you. The only
resource that may not be used is people. YOU ARE NOT TO DISCUSS THIS TEST WITH ANYONE
UNTIL IT HAS BEEN TURNED IN. PLACE YOUR NAME IN THE CONTENT OF THE EXAM
AND THE FILENAME.
1) (10 points) Identify the difference between composition and aggregation. When should you use
one versus the other?
2) (10 points) What makes the software design and development process so complex? How does the
object oriented paradigm help in overcoming or minimizing each of these issues?
3) (10 points) Name and describe the types of relationships among classes that must be identified in
building a class model.
4) (10 points) There are four basic categories associated to abstraction. What is the basic concept
associated with each technique? Which technique should we strive for in design?
5) (10 points) Draw the class diagram to represent the following structure.
A person must be either male or female. (only 1 with no change)
A person can be a manager, engineer, consultant, administrative support, or an executive (changes
allowed via promotion)
If the person is a manager they must be either a sales manager or a technical manager (may change
but can only be one)
If the person is a technical manager they must be an R&D manager, maintenance manager,
development manager, or testing manager
If the person is a testing manager they must be either a system or integration testing manager (only
1, changes allowed)
If the person is a sales manager they must be either a commercial or government sales manager
(only 1, changes allowed)
If the person is an engineer they must be development, maintenance, test, or R &D (only 1,
changes allowed)
If the person is a consultant they are either short-tern or long-term. (short-term can convert to
long-term and long-term can convert to short-term)
6) (10points) For what purpose should the CRC method be used? When should a transition be
made from the CRC method to some other method and why?
7) (10 points) In the object model, what characteristic/attribute is the most important and why?
8) (15 points) Your goal is to construct the CRC cards for the classic game battleship. (Reference
https://en.wikipedia.org/wiki/Battleship_(game) if you need the details of how the game is played
and rules).
The following additions are to be made in your consideration of this task:
1. An administrator can define the configuration of the game based on the playing grid size (per
player) and the number and size of the ships. Only 2 players can play at any time. This can be 2
people or one against the computer. You can assume online play is the way the game will be
delivered with 2 remote people playing each other or one against the computer.
Page 1