+ 1

Destructors

Why we need to destruct?

16th Feb 2019, 11:24 AM
Utkirbek Qutfiddinov
Utkirbek Qutfiddinov - avatar
1 ответ
+ 5
As the word itself says, it "destruct" something (i. e. object) so it basically "removes" or destroy something which was at most time constructed by a constructor. So its the opposite of constructor. But how it works you can easly look in the tutorial block in sololearn. But remember there are several other posts about destructors on here. ;)
16th Feb 2019, 12:38 PM
avatarluca
avatarluca - avatar