Course Review before the Midterm
Dr. Lawlor, CS
202, CS, UAF
Generally, this semester we've covered most of the remaining features in C++:
- Control flow methods: if, for, while, and do
- Pointers, and memory allocation and deallocation
- Files, including reading and writing simple text files and binary files
- Classes, which include a huge number of features:
- Constructors, including initializers, and destructors
- Overloaded operators, including add, subtract, output, or assignment operators
- Static members, both data and functions
- Inheritance, including virtual methods (parent methods that can be overridden in the child class)
- Exceptions, which are a very useful way to handle errors, but require you to do all memory deallocation in your destructors.
- Templates, which are a way to make functions and classes that work with multiple input data types.
You should review the lecture notes, homework questions, and the book!