CIS 181 Intro to Comp Sci
Class 27,  May 17, 2005

IMPORTANT DATE:

Final Exam Scheduled for Friday, May 20th, 10:30am-12:30pm


ASSIGNMENT:

     Prepare for Final!!!!


TODAY'S TOPICS
  1. Inheritance
    1. base classes and derived classes
    2. protected members
    3. syntax for defining base and derived classes
    4. calling member functions (of the base)
    5. redefining base functions in the derived class
    6. (multiple inheritance)

    Some class definitions used in lecture can be found in:
    $CLASSHOME/examples/stu-teach.h
    $CLASSHOME/examples/stu-teach.cc
    $CLASSHOME/examples/stu-teach-drive.cc

  2. Student/Teacher classes defined using inheritance:
    $CLASSHOME/examples/person-stu-teach.h
    $CLASSHOME/examples/person-stu-teach.cc
    $CLASSHOME/examples/person-stu-teach-drive.cc

    Another example -- using inheritance with the stack/queue
    $CLASSHOME/examples/queue-stack.h
    $CLASSHOME/examples/queue-stack.cc
    $CLASSHOME/examples/queue-stack-driver.cc

  3. Wrap-up!

    Final will cover entire course, but emphasis will be on Chapter 7, Chapter 8, Chapter 17. Note in chapter 17 we did not follow the book closely especially with respect to the specific implementations. In particular, templates will NOT be covered. You may, however, find the graphical representation and description of insertion and deletion operations helpful.