CS12 Topic list for midterm Book: Chapters 6--8, 3.12--3.14 Classes declaration definition (implementation) division into separate files data members -- declaration data members -- initialization (not in class definition) data members -- how to access member functions -- writing member functions -- calling public & private the scope opertor :: constructor parameters to constructor default parameters initializer lists destructor inline functions accessor methods (return value of private data) mutator methods (change value of private data) memberwise copy with assignment const objects const member functions objects as data members self reference to calling object (*this) cascading Operator Overloading why do it? keyword operator which operators may be overloaded (donšt memorize all, but know examples) restrictions on overloading overloading unary operators, binary operators how compiler translates overloaded operator method how compiler translates overloaded function (not part of class) friend functions overloading the insertion (<<) and extraction (>>) operators as friend function takes ostream & as argument, returns ostream & one other argumemt Recursion writing recursive functions two conditions: terminating condition (base case) progress towards base case (problem gets smaller) determining the output of a recursive function Anything else mentioned in class may show up on the test. Review your notes carefully.