Is Constructors is one kind of function only? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is Constructors is one kind of function only?

31st Jul 2016, 6:51 AM
Pradeep Mishra
Pradeep Mishra - avatar
1 Answer
0
a constructor is a special function that automatically gets called when an object is created. you cant call it yourself.
2nd Aug 2016, 2:59 PM
Bernhard .Speicher
Bernhard .Speicher - avatar