In-Class Examples for CISC-2000-E01
For some reason, C++ exceptions were not on the list of topics I was given.
- Pointers
-
Hexadecimal
(base 16) notation for memory addresses.
-
A
pointer
is a variable that contains the address
of another variable.
-
Motivate pointers by
looping through an array with a pointer.
-
Pointer arguments vs. reference arguments.
-
Pass an array to a function by passing a pointer.
-
Classes.
-
Operator overloading.
-
Dynamic memory allocation with
new
and delete
.
-
Inheritance and polymorphism.
- Single inheritance vs. multiple inheritance
- Abstract base classes and pure virtual functions
- Public inheritance vs. private inheritance
-
Templates.
- Template functions
- Template classes