CS 4448 - Spring 1998
Object-Oriented Programming and Design
Lecture 9.2
Project Details to come via the web
Questions on HW#7 After Class
Chapter 8 Error Handling
- Passive Vs. Active Example of why
Group Project
- Think about what we can build
- Everyone will build the big picture with most things stubed out
and we will each build a module. We then share the modules and it
just works.
- Example stub is a database query that only returns one hardcoded record.
Talks
Chapter 9 Inheritance
- This should just be a review but a few interesting things.....
- Commonality - Base class captures common information and features.
- Customize the existing class.
- Common Design Interface with varying implementations.
- Object Construction - Reserve all the memory for base and derived
class. The constructor to init. first base then derived. Derived class
might depend on the base class so it needs to be initialized.
- Object Destruction - Reverse of Construction for same reasons.
See Virtual Base example.
Adam Jonathan Griff,
computer@griffmonster.com
Copyright © University of Colorado. All rights reserved.
Revised: March 12, 1998