1. Friday, 11/6/2009 Notes

    In lecture today, the following topics were covered:

    • a decision to move the final exam to Saturday, December 5th, 2:00pm
    • the intricacy of overloading the assignment operator
    • l-values and r-values
    • the similarity of the assignment operator and copy constructor
    • the necessity of correctly managing dynamic memory allocation in the assignment operator
    • overloading the output operator

    Here are the Rectangle files as we got to them today: Rectangle.h, Rectangle.cpp, and rectangleMain.cpp

    Here are the powerpoint slides on the assignment and output operators.  The chapter on Operator Overloading in the book may be useful for reinforcing these ideas.

    The lab next week (#10) will deal with operator overloading the Vector class.