Home CPSC 330

Essay Exam 2

Due: November 4

Directions


Questions

  1. Suppose you are making a computer version of the game Battleship. What classes might you create in designing the solution and what would the responsibilities of each be?
  2. Draw a UML class diagram of the classes in your answer to #1.
  3. Look up the decorator pattern. Explain what the pattern is used for and give an example of how it might be effectively applied.
  4. What are regressions and how can they be avoided?

Submitting

Submit your answers by emailing them to ifinlay@umw.edu. Please email your answers as a PDF document.

Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.