- Static vs Dynamic Dispatch
- A method call will use the static type when it is an object or when the method is not defined as virtual in the static type that it was set. Otherwise it will use dynamic dispatch.
- Implmentations in .cc file vs in a .h file
- This for compilation efficiency, such that every file that includes the module doesn’t have to recompile on the change of implementation, and only on the change of declaration structure.
- Templated Classes
- A separate class is compiled for each type that the class is used with during compile time. This adds no time to runtime.
- Invariant
- A constraint or rule that will hold at the beginning and end of a program
- Object construction sequence
- Allocate memory
- run constructor of superclass
- initialize members in MIL
- run body of constructor
- Object destruction sequence
- run body of destructor