Suppose that we design a car class. if the name of the car is stored in the dynamic array. Also we design a destructor. Will this destructor destroy the dynamic array also??
Destructor in oops
NO ,it will not destroy it automatically
you have to destroy it in destructor using
delete [] arr;