Week 7 - February 19

Due Today
Preparation for Class
 | Bring any problems you are having with the assignments. |
 | Look back over Chapters 6, 7, 8 and 9 and identify areas you would like to
have reviewed in the class. |
 | Think about what sort of term project you would like to do. |
Topics Covered in this Class
Note: Since this is a review class, the topics and case studies listed are
indicative only. We will start by making a list of what you would like to have
covered in the class and try to fit it all in.
 | Review Topics through Chapter 7
 | Understanding and writing declarations |
 | References, reference arguments and return values |
 | Allocating and freeing memory |
 | Pointers, pointer arguments and return values |
 | Use of const |
|
 | Case Studies in Data objects and Operator Overloading
 | TimeOfDay (my sample program) |
 | Complex (Chapter 8 assignment) |
 | Array class (Chapter 8 example) |
 | String class (Chapter 8 example and assignment) |
 | Date class (Chapter 8 example) |
|
 | Inheritance Concepts
 | Relationships between classes
 | "Is a" versus "has a" relationships |
 | Model "is a" (generally) by inheritance |
 | Model "has a" (generally) by composition |
 | Other relationships |
|
 | Base and derived classes - Homework example
 | Inheriting from someone else's code |
 | Use of protected access |
 | Overriding and adding member functions |
 | Order of constructors and destructors |
 | Use of base class pointers |
 | Use of derived class pointers |
|
 | Another example - TicTacToe
 | Creating a class hierarchy |
 | Calling through a base pointer - which class? |
 | Virtual functions |
 | Pure virtual functions and abstract classes |
 | Polymorphism Regained |
|
|
Assignments
 | Chapter 10 |
 | Submit topic or proposal for Term Project |

|