Is it a must constructor name be the same as destructor name? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 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