Chapter 15, Testing Classes and Components
- a. Your classes follow orthodox canonical class form if they each include a (user-specified) default constructor, copy constructor, overloaded assignment operator, and a virtual destructor. Your classes additionally follow extended canonical class form if they also include a move copy constructor and an overloaded move assignment operator.
b. Your class will be considered robust if it follows canonical class form and ensures that all instances of a class have the means to be fully constructed. Testing a class can ensure robustness.
- a – c. Please see
Assessments/Chapter15/Chp15-Q2.cpp
in the GitHub repository. - Please see
Assessments/Chapter15/Chp15-Q3.cpp
in the GitHub repository.