Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
when destructor is called?
2 Respostas
+ 2
"If the object was created as an automatic variable, itsĀ destructorĀ is automaticallyĀ called when it goes out of scope. If the object was created with a new expression, then itsdestructor is calledĀ when the delete operator is applied to a pointer to the object."