Chapter 7 - Define Your Own Data Type
- Ex7_01.cpp - Exercising structures in the
yard
- Ex7_02.cpp
- Creating and using boxes
- Ex7_03.cpp
- Calculating the volume of a box with a member function
- Ex7_03a.cpp
- Put the function definition outside the class definition
- Ex7_04.cpp
- Using a constructor
- Ex7_05.cpp
- Supplying and using a default constructor
- Ex7_06.cpp
- Supplying default values for constructor arguments
- Ex7_07.cpp
- A class with private members
- Ex7_08.cpp
- Creating a friend function of a class
- Ex7_09.cpp
- Initializing an object with an object of the same class
- Ex7_10.cpp
- Using the pointer this
- Ex7_10A.cpp
- Making member functions const
- Ex7_11.cpp
- Using an array of class objects
- Ex7_12.cpp
- Using a static member to count objects
- Ex7_13.cpp
- Exercising the indirect member access operator