CS 4448 - Spring 1998
Object-Oriented Programming and Design
Lecture 5.1
Again the Talks and what is expected
Homework #3
- What was expected?
- This is a senior level course...Welcome to the real world
- Molecule check if it is water
- inheritance limited for some - duplicate code results in errors
and trouble for maintainability and future reusability.
- inheritance must be used correctly - wrong answers vs. no answer
- hard coded answers can be bad, # of legs
- Calling the parent constructor new or specialized with info
- OO - encapsulation, modularity, abstraction, design hierarchy
- Design is based on analysis which can change. One design does not
fit all situations.
- Design Hierarchy vs. real life hierarchy
Chapter 5
C++
- io - Streams(istreams, ostreams) - cin >> , cout << P.89 or printf
- On HW#3 why are some people getting round of but not others?
- Templates P.82 - used mainly to parameterize(generic) classes
Smalltalk
- Does no type checking mean no Templates?
Adam Jonathan Griff,
computer@griffmonster.com
Copyright © University of Colorado. All rights reserved.
Revised: February 10, 1998