Homework 11
CSSE 221 – Fundamentals of Software Development Honors
Fall 2008–2009

Recall the Due Dates and (from the syllabus) the Late (and early) Assignment Policy and guidelines for maintaining Academic Integrity.

Also recall that you can get help on any of these problems during the CSSE lab assistant hours, and you can use the Assignments Discussion Forum on Angel to discuss, clarify, or get help on these problems.

Things to do

  1. Continue working on your Fifteen project, using pair programming throughout. You should be finished or nearly finished with it by the due date of this homework.
  2. Read the rest of Chapter 9, Interfaces and Polymorphism, of Big Java. (You previously read sections 9.1 through 9.3.)
  3. Do the written problems below.

Written problems

Write your answers to these questions. Turn your answers in via the appropriate Homework Drop Box on Angel.

  1. (4 points) There are 22 Self-Check problems in Chapter 9 (part of your reading for this homework). How many of these 22 Self-Check problems did you read, think about briefly, and check your answer against the answer at the back of the chapter?
  2. (3 points) Do Review Exercise R9.7 on page 431 (end of Chapter 8) of Big Java.
  3. (1 point) Do Review Exercise R9.23 on page 432 (end of Chapter 8) of Big Java.
  4. (2 points) Examine the RectangleMover class on pages 420-421.

    1. There is an inner class inside RectangleMover. What is the name of the inner class, and it goes from line numbers what to what?
    2. Indicate how you would rewrite RectangleMover to use an anonymous class instead of an inner class for responding to the timer.
    3. In your opinion, which is more clear -- the solution that uses an inner class or the solution that uses an anonymous class? Why?
      • Note: I will accept either answer to this question. Your grade will be based on the quality of your explanation for why you prefer the solution that you prefer.