CS 153 Data Structures I
Assignment #6

Due: 2/22/01

This assignment (#6) is designed to make sure that you UNDERSTAND everything necessary for the next assignment (#7) which is a PROGRAM.  The program for assignment #7 will perform the same operations as Program #5 except instead of manipulating ints it will be capable of manipulating any data type using a generalized CBag class.This involves the following topics/concepts:

  1. Inheritence
  2. Virtual constructors
  3. Virtual destructors
  4. Virtual member functions
  5. Allowing a 'BaseClass' pointer to point to a 'DerivedClass' instance
  6. Casting a 'BaseClass' pointer to a 'DerivedClass' type
  7. Given: