Chapter - 5: Classes in C++

What does the delete operator do in addition to deallocating the memory used by the object?


D
Sections
5
Exercises

A

B

C

D

1

2

3

4

5

6

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


© 2020 Garbage Valuegarbage value logo