0

What are Destructors?

I've just reached the 66% mark in C++ and there are some things that I still don't understand. As things go on, it's getting more and more confusing. I'm pausing for now until I figure this out.

31st Mar 2021, 6:48 PM
Lukas Mendevi
1 ответ
+ 2
I think you are talking about destructors. These are similar to constructors which are called when an instance of class is created but destructors are called when an instance is destroyed either using delete or once the instance created goes out of scope.
31st Mar 2021, 7:48 PM
Avinesh
Avinesh - avatar