What is destructor? Destructor is a member function which destructs or deletes an object.
When is destructor called? A destructor function is called automatically when the object goes out of scope: (1) the function ends (2) the program ends (3) a block containing local variables ends (4) a delete operator is called
What is destructor? Destructor is a member function which destructs or deletes an object.
When is destructor called? A destructor function is called automatically when the object goes out of scope: (1) the function ends (2) the program ends (3) a block containing local variables ends (4) a delete operator is called
где-то я читал, что это при создании дотнета ошиблись и с тех пор так и пошло. разница, насколько я помню, в вызове (что-то астоматом вызывается, а что-то надо руками)