+ 2

Can a destructor delete static variables....?

4th Oct 2016, 1:23 PM
Praneeth Valeti
Praneeth Valeti - avatar
2 odpowiedzi
+ 4
a destructor delete an instance of a class, So it does not delete what is in a class, like an static variable or method
4th Oct 2016, 4:54 PM
Xavoberto
Xavoberto - avatar
+ 1
I don't think so , static variables are deleted automatically at the end of life time
5th Oct 2016, 7:40 PM
Ashraf Ali Mohammed Naji Sinan
Ashraf Ali Mohammed Naji Sinan - avatar