how will this constructor and destructor works? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

how will this constructor and destructor works?

28th Jan 2017, 6:11 PM
Monisha Mp
Monisha Mp - avatar
2 Réponses
0
Share code also
28th Jan 2017, 6:18 PM
Arpan Lunawat
Arpan Lunawat - avatar
0
Constructor is called when object is created. Destructor is called when object is destroyed(deleted).
28th Jan 2017, 6:21 PM
Naseef
Naseef - avatar