delete operator not only deallocate the memory but also call the destructor for that object it is used.