/*************************************************************************

 IBM(R) VisualAge(TM) C++ for OS/2(R), Version 3
  - Collection Class Library -

 (C) Copyright IBM Corp. 1991, 1995.
  - Licensed Material - Program-Property of IBM - All Rights Reserved.

 *************************************************************************/

Tutorial 6: Writing polymorphic applications

1) Write a printCollection function, that prints list as well as sets.
2) Construct a tabular list and copy all elements from the linked list
   to the tabular one.
3) What do you have to add  to person.h for the tabular list to work?
ANSWER: The default constructor is needed to initialize  the array.
   What do you have to add  to person.h for the set to work?
ANSWER: The < and == operator or a compare function.
4) Print  out the contents of all collections.
5) Add "your name"  to the reference class of the tabular sequence
6) Add  A. Schwarzenegger to the tabular sequence
6) What is the advantage of providing classes  for polymorphic
   use and for non-polymorphic use?
ANSWER: Polymorphic usable classes have to be part of a class hierarchy.
        Therefore you pay a performance penalty for the virtual function
        call overhead, i.e. functions cannot be inlined.
