This directory contains example Java code.
- A generic Person class. Declared "abstract" because it
declares a method
whatAmI() but provides no
- A subclass of Person that implements
whatAmI() along with
other methods related to Faculty. Includes a
method for representing this kind of object as a
- Another subclass of Person that is similar to
- this program demonstrates how to use a
Vector to hold
objects. The objects are of different types yet when we
treat them as Person objects, the right code gets executed
(for example when printing). Play with this code a bit to
see how Java works.