Three questions of approximately the same weight:
- Composition and Collections. Concepts; file I/O and tokenizers;
iterating through a collection;
accessing fields that are themselves objects.
- Inheritance & Polymorphism. Concepts; using a subclass with inherited
and overriden methods, polymorphism, late/early binding, and object collections.
- Exception Handling.
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.
Here is a sample (in
It includes two samples for Q#1.
You are encouraged to attempt it and then discuss with others.