Why Constructor does not hold the properties and behaviour of Object? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why Constructor does not hold the properties and behaviour of Object?

16th Jun 2018, 6:31 PM
Aditya goyal
Aditya goyal - avatar
2 Answers
+ 2
Constructors are primarily used for field initialization.
16th Jun 2018, 7:19 PM
John
John - avatar
0
What programming language do you mean? and also I think you should post your code for this specific case.
16th Jun 2018, 6:34 PM
Mohammadyar Barandov
Mohammadyar Barandov - avatar