TEST #2


I. OUTLINE

Three questions of approximately the same weight:
  1. Composition and Collections. Concepts; file I/O and tokenizers; iterating through a collection; accessing fields that are themselves objects.
  2. Inheritance & Polymorphism. Concepts; using a subclass with inherited and overriden methods, polymorphism, late/early binding, and object collections.
  3. Exception Handling.

II. FORMAT

You will typically write a full app but you may be asked to write just a code fragment (part of an app). You will be using several classes related by has-a and is-a relationships.

III. SAMPLE

Here is a sample (in pdf). It includes two samples for Q#1. You are encouraged to attempt it and then discuss with others.