First page Back Continue Last page Graphics
WHEN A NEW CLASS OBJECT IS CREATED
The implementation allocates memory to hold the object.
It initializes the object, as directed by the constructor's initializer list.
It executes the constructor body.
In our example, we explicitly initialized midterm and final. n is initialized by the string default constructor and homework is initialized by the vector default constructor.