//Ch9Demo.cpp //SYSC 2002, Fall 2009 //A simple example of when and how c++ uses destructors, copy constructors, //and the assignment operator. #include "stdstuff.h" //very simple class, no private data. class DemoClass{ public: int someInt; int* aIntPtr; //Default constructor. C++ uses this whenever it needs to construct an //instance of the DemoClass class (ie create a DemoClass object) DemoClass(){ cout << "Calling default constructor." <