- 1

Can someone help me with the constructors?

2nd Sep 2016, 6:01 PM
Munindra
Munindra - avatar
3 Answers
+ 1
What did you not understand? Your question is vaguely formed.
2nd Sep 2016, 7:48 PM
Ivelin Dinev
Ivelin Dinev - avatar
+ 1
Without constructor you can not allocate a memory for a class that is instantiation. Constructor is called only once for a particular object. Constructor is used to initialize the instance readonly variables. Constructor is similar as a method but constructor is called automatically, does not have any return type.
27th Sep 2016, 9:43 PM
Jai Verma
Jai Verma - avatar
0
contructor is same like mathods but without return type, purpose is to intionaliz the object. and called when object is created.
4th Sep 2016, 3:23 AM
Ali
Ali - avatar