Wt is constructor and y we use in programs | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Wt is constructor and y we use in programs

11th Sep 2017, 1:50 PM
indumohara
indumohara - avatar
1 ответ
+ 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