7.1. The struct in C++7.1.1. What Is a struct?7.1.2. Defining a struct7.1.3. Initializing a struct7.1.4. Accessing the Members of a struct7.1.4.1. How It Works7.1.5. IntelliSense Assistance with Structures7.1.6. The struct RECT7.1.7. Using Pointers with a struct7.1.7.1. Accessing Structure Members through a Pointer7.1.7.2. The Indirect Member Selection Operator7.2. Data Types, Objects, Classes, and Instances7.2.1. First Class7.2.2. Operations on Classes7.2.3. Terminology7.3. Understanding Classes7.3.1. Defining a Class7.3.1.1. Access Control in a Class7.3.2. Declaring Objects of a Class7.3.3. Accessing the Data Members of a Class7.3.3.1. How It Works7.3.4. Member Functions of a Class7.3.4.1. How It Works7.3.5. Positioning a Member Function Definition7.3.6. Inline Functions7.4. Class Constructors7.4.1. What Is a Constructor?7.4.1.1. How It Works7.4.2. The Default Constructor7.4.2.1. How It Works7.4.3. Assigning Default Parameter Values in a Class7.4.3.1. How It Works7.4.4. Using an Initialization List in a Constructor7.5. Private Members of a Class7.5.1.7.5.1.1. How It Works7.5.2. Accessing private Class Members7.5.3. The friend Functions of a Class7.5.3.1. How It Works7.5.3.2. Placing friend Function Definitions Inside the Class7.5.4. The Default Copy Constructor7.5.4.1. How It Works7.6. The Pointer this7.6.1.7.6.1.1. How It Works7.7. const Objects of a Class7.7.1. const Member Functions of a Class7.7.2. Member Function Definitions Outside the Class7.8. Arrays of Objects of a Class7.8.1.7.8.1.1. How It Works7.9. Static Members of a Class7.9.1. Static Data Members of a Class7.9.1.1. How It Works7.9.2. Static Function Members of a Class7.10. Pointers and References to Class Objects7.10.1. Pointers to Class Objects7.10.1.1. How It Works7.10.2. References to Class Objects7.10.2.1. Implementing a Copy Constructor7.11. C++/CLI Programming7.11.1. Defining Value Class Types7.11.1.1. How It Works7.11.1.2. The ToString() Function in a Class7.11.1.3. Literal Fields7.11.2. Defining Reference Class Types7.11.2.1. How It Works7.11.3. Defining a Copy Constructor for a Reference Class Type7.11.4. Class Properties7.11.4.1. Defining Scalar Properties7.11.4.2. Trivial Scalar Properties7.11.4.3. How It Works7.11.4.4. Defining Indexed Properties7.11.4.5. How It Works7.11.4.6. More Complex Indexed Properties7.11.4.7. Static Properties7.11.4.8. Reserved Property Names7.11.5. initonly Fields7.11.6. Static Constructors7.12. Summary7.13. Exercises