CO311: More classes with various member function implementations

Example animal.h animal.cpp driver.cpp Notes
1 animal.h animal.cpp driver.cpp Basic class definition
2 animal.h   driver.cpp “Inline” function definitions
3 animal.h   driver.cpp Special “return reference” type
4 animal.h   driver.cpp friend operator<< and making it work with cout

 

Example roman.h roman.cpp driver.cpp Notes
1 roman.h roman.cpp driver.cpp Mixing “Inline” function definitions with separate implementation
2 roman.h driver.cpp driver.cpp returning a string instead of displaying it
3 roman.h driver.cpp driver.cpp increment operators (i++, ++i)
4 roman.h driver.cpp driver.cpp friend operator<< and making it work with cout

 

Example length.h length.cpp driver.cpp Notes
1     driver.cpp Putting it all in one place
2 roman.h   driver.cpp Same thing, but 2 files.
3 roman.h driver.cpp driver.cpp Same thing, but 3 files
4 roman.h driver.cpp driver.cpp friend operator<< and making it work with cout
5 roman.h driver.cpp driver.cpp increment operator (i++)
6 roman.h driver.cpp driver.cpp One multi-purpose data member
7 roman.h driver.cpp driver.cpp Use static member to keep track of what gets incremented