Final Review
Contents
Object-oriented Programming (OOP)
- classes and objects
- style or paradigm for constructing a program
- intended to improve modularity and code reuse
- class and object syntax
- create an object
- call member functions of an object
- access member variables of an object
- public and private access specifiers
- conventional use of .h and .cpp with respect to classes
- syntax of constructor (difference from other member functions)
post-/pre- increment and decrement
- reason about the value of an expression
problem solving and program design
- decomposition
- abstraction
- examples of each in C++
- e.g., dividing large problem into functions, classes
algorithms
- properties of an algorithm
- write pseudo-code
- convert algorithm (e.g., written in pseudo-code) to C++ code
enumeration
- e.g., using a for loop
- enumerating elements of an array, vector
- enumerating characters of a string
- enumerating elements of a subset (e.g., even numbers)
C++ syntax
- classes
- struct
- functions (calls, declarations, definitions)
- loops (for, while, do-while)
- variable declaration (instance of a class)
- dot operator
- types (fundamental, user-defined)
- limitations of fundamental types (e.g., floating-point precision)
- arrays
- #include
- literals
- const
- type conversions (automatic, explicit)
- mathematical operations (e.g., integer vs floating point division)
function overloading
scoping
Test 2
Mid Semester Review