CS 4448 - Spring 1998
Object-Oriented Programming and Design
Lecture 4.1
Course Structure
- How and why we are doing...
- Talks and discussions 15 min. + 5 min.
- Work needs to be done right. In business if your work is flawed
for any reason or late it can cost you time, money, and even your job.
Discuss Homework #2
- Squeak problem found. Comments and variables names only work if
you have a writable change file.
- Inheritance
- Does number know how to become a Triple, yes and
no. Depends on your implementation.
- Don't need super with x and y method in Triple, why?
- Why did we need to implement storeOn: or did we?
- A Point is just a 2D Triple on the 0 plain.
- Reuse!!!! @, asTriple, Round, min: ...
Discuss Homework #4
Chapter 3 & 4
C++
- member variables/attributes/data, static var/att/data
- .hh versus .cc files
- Privileges used with constructor and destructor can help in memory
management. P.110
Smalltalk
- instance variables, class variables
- io - aStream nextPut: $@ , printOn: aStream
Adam Jonathan Griff,
computer@griffmonster.com
Copyright © University of Colorado. All rights reserved.
Revised: February 3, 1998