Chapter 6: Object Creation and Destruction#
In this section we will be following along with the examples from “Object Oriented Programming Using C++” by Ira Pohl (Addison Wesley). We will use Jupyter Lab and Jupyter Book to facilitate rapid production of HTML content. Where appropriate, the output of the C++ code will be displayed in graphical format using Python scripts and Matplotlib.
- Classes with Constructors
- Constructors as Conversions
- The Copy Constructor
- 6.3 Classes with Destructors
- An Example: Dynamically Allocated Strings
- A Class Vect
- Chapter 6.6: Members that Are Class Types
- Chapter 6.7: An Example: A Singly Linked List
- Chapter 6.8: Two - Dimensional Arrays
- Chapter 6.9: Polynomials as a Linked List
- Chapter 6.10: Strings Using Reference Semantics
- Chapter 6.11: No Constructor, Copy Constructor, and Other Mysteries