First page Back Continue Last page Graphics
Prata 14 : Reusing Code
“has-a” relationship.
Classes with member objects (containment).
We did this in the student report lab.
Example – Prata:studentc
Note that operator[ ] definition has bounds checking.
Compile time errors are better (cheaper) than run-time errors.