0

What is Initialize in constructor??

constructor is used to Initialize... so I m confused what Initialize is and whom to Initialize ???

11th Jun 2017, 4:23 PM
Himanshu Singh
Himanshu Singh - avatar
2 Respuestas
+ 7
instance variables are initialized in constructor.It has same name as class name and declared in public always and has no return type...
12th Jun 2017, 4:55 PM
Ekansh
0
A constructor is what happens within the class once you declared the variable. Initializing is like"creating" what if needed for the class to work
11th Jun 2017, 4:41 PM
Limitless
Limitless - avatar