whats the difference bet. new operator and destructor?
whats the difference bet. new operator and destructor?
Well quite a bit...Originally posted by ????
whats the difference bet. new operator and destructor?
operator new allocates memory on the free store and returns a type safe pointer to that memory
destructors are class member functions that allow you to de-allocate memory and do general house keeping before the object is destroyed...