AP Computer Science Workshop
The Switch to C++
- C++
- Basic C++
C++ vs. Pascal, C++ Caveats, C++ Functions
Example: Finding Primes- Classes and Objects
Declaring Classes (with Line example)
Constructing and Using Objects (more Line examples)
Example: Palindrome Program
Defining Member Functions (more Line examples)
Example: Fraction.h and Fraction.cpp
- Details and the AP CS Idiom
- Constructors and Initialization Lists, Copy and Conversion Constructors
- Accessors vs Modifiers
- Const, const, const, const, ...
- Pass-by-value, Pass-by-reference, Pass-by-const-ref
- Helper Member Functions (i.e., Avoiding Friends)
Example: Fraction.h and Fraction.cpp- Preconditions and Postconditions
- The AP CS C++ Subset
- The AP CS C++ Classes
- Large Integer Case Study in C++
- Object-Oriented (actually object-based) vs Structured Programming
Alyce Brady, Kalamazoo College