Book 2

Understanding Objects and Classes

Contents at a Glance

  1. Chapter 1: Working with Classes
    1. Understanding Objects and Classes
    2. Working with a Class
    3. Starting and Ending with Constructors and Destructors
    4. Building Hierarchies of Classes
    5. Creating and Using Object Aliases
  2. Chapter 2: Using Advanced C++ Features
    1. Filling Your Code with Comments
    2. Converting Types
    3. Reading from the Console
    4. Understanding Preprocessor Directives
    5. Using Constants
    6. Using Switch Statements
    7. Supercharging enums with Classes
    8. Working with Random Numbers
    9. Storing Data in Arrays
  3. Chapter 3: Planning and Building Objects
    1. Recognizing Objects
    2. Encapsulating Objects
    3. Building Hierarchies
  4. Chapter 4: Building with Design Patterns
    1. Delving Into Pattern History
    2. Introducing a Simple Pattern: the Singleton
    3. Watching an Instance with an Observer
    4. Mediating with a Pattern