+ 4
A destructor in C++ is a piece of code associated with every class. This piece of code is called up whenever an an object of that class has reached it end of life. This end of life scenario is somewhat dependend on the context of program execution. You may want to read a good book on OOP with C++ to understand it better 👍
20th Apr 2017, 1:23 PM
Renjith M
Renjith M - avatar