Is delete a destructor? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Is delete a destructor?

12th Jul 2016, 9:03 AM
Rohit Ner
Rohit Ner - avatar
2 Réponses
0
no but before deleting object destructor is calling by compiler. and
30th Jul 2016, 4:07 PM
Ajay Bamniya
Ajay Bamniya - avatar
- 1
no, but delete can be seen as a way to call the destructor.
25th Jul 2016, 5:53 AM
Bernhard Eriksson
Bernhard Eriksson - avatar