CS 211:
Introduction to Computer Programming II
| Instructor: Brian M. Dennis | |
| Teaching Assistants: | |
| Tom Lechner, Bin Lin, Rachel Goldsborough | |
| http://www.cs.northwestern.edu/~bmd/cs211/ | |
| // Just for completeness' sake | |
| void Car::display() { | |
| cout << producer << "[" | |
| << vin << "]" << endl; | |
| } |
| char* strings are lame | ||
| Can't hold null characters | ||
| Can be conflated with a pointer to a single char | ||
| Can't directly compare | ||
| Small library of operations | ||
| No bounds checking | ||
| string class fixes many of the problems | ||
| Takeaway | ||
| Inheritance promotes reuse | ||
| Interface | ||
| Data structuring | ||
| Implementation code | ||
| Reading | ||
| 9.1 – 9.5 | ||