CS 261 University of Puget Sound Spring, 2020
 
Computer Science II
Abstract Data Types and their Implementations, Some Basic Algorithms,
Object-oriented Problem Solving, and Efficiency
 

Warning: This course is under development. Although the basic structure of this course is largely established, nothing on this Web site should be considered official or even possibly correct.
DO NOT MAKE PLANS BASED ON THE CONTENTS OF THIS SITE UNTIL JANUARY, 2020.

Warm-up Exercise for Public, Protected, Private Materials and for Abstract Classes

The following diagram shows the alternative Class hierarcy for the student directory example from the reading on Generalization.

alternative directory hierarchy

Suppose further that this hierarcy is to be expanded to include a "campusLocation" and "descriptor" field, as follows.

Further, boththe campus location and the descriptor should be included in every person's toString identifier.

Questions


created 19 January 2020
revised 19 January 2020
Valid HTML 4.01! Valid CSS!
For more information, please contact Henry M. Walker at walker@cs.grinnell.edu.