Is it a must constructor name be the same as destructor name? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
+ 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