0

The ambiguity of defining constructor' name 😇😇

What's the point of defining a constructor method's name just like the name of the class.? and can we do the instantiation process just like this : Demo (type of the object) x; x.new constructor(name of the constructor method);

15th Dec 2017, 9:38 AM
UbuUunTu✔
UbuUunTu✔ - avatar
2 Answers
+ 1
In which language are you coding?
15th Dec 2017, 9:44 AM
Corentin
Corentin - avatar
+ 1
In general, the point is that the constructor is called automatically at the instantiation of the object...
15th Dec 2017, 9:45 AM
Corentin
Corentin - avatar