0

Wt is constructor and y we use in programs

11th Sep 2017, 1:50 PM
indumohara
indumohara - avatar
2 Antworten
+ 2
A constructor is invoked at the time of object creation. It constructs the values and provides data for the object. Constructors must have the same name as the class and must have no explicit return type.
11th Sep 2017, 2:14 PM
Lucien
Lucien - avatar