CSSE 221: Fundamentals of Software Development Honors

Key

Programming assignment

Finish BallWorlds, as stated in the specification, being sure you have checked in your final, fully-documented copy to the repository.

Written homework

Answers are to be written in your own words! As usual, please bring hardcopy for written answers to class to hand in on Monday.
  1. Make sure you've done all the reading for the week.
  2. Describe the appropriate uses of each of these visibility modifiers: public, protected, and private. (12 points, 4 each)
  3. What is a benefit of creating a class that inherits from another class? (6 points)
  4. Explain the two meanings of the super keyword. Explain the two meanings of the this keyword. How are they related? (12 points)
  5. If Foo extends Bar, explain the use of each of the following or tell why it is incorrect. (10 Points, 5 each)
    1. Foo f = new Bar();
    2. Bar b = new Foo();
  6. Give an original example in which it is appropriate to use polymorphism. Explain why it’s appropriate. (10 Points)
Reminder that assistants are in Moench F217 during the afternoons and evenings to help you.