Slide 11

CSCI 201 Guest Lecture: Data Modeling


Example: A good data model

QDH realized that his table model was inflexible so he decided to scrap his program re-model the problem as an object model:


Object Model for Peter's Pump Company

This model can be easily mapped to C++ or Java. The pump class contains a list, array, or Vector of "component" objects. The instantiated pump objects are kept in a list, array, or vector. Peter was thrilled with QDH's new program.

Next page


Email: Richard dot J dot Wagner at gmail dot com

dm06.htm, this hand crafted HTML file created October 18, 1997.
Last updated October 22, 2010, by Rick Wagner. Copyright © 2010, all rights reserved.