Is it a must constructor name be the same as destructor name? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Is it a must constructor name be the same as destructor name?

27th Sep 2016, 5:12 PM
kayode emmanuel
kayode emmanuel - avatar
1 Réponse
+ 4
well, constructor names must match the class name, and destructors match the class name with a ~ in front....
28th Sep 2016, 8:27 PM
Trevor C. Rogers
Trevor C. Rogers - avatar