+ 1
constructor
can anyone explain to me exactly how a constructor work.?
1 Resposta
+ 7
Function without a return type but with the same name as the class, which is invoked when an object is created. Used mainly to initialize variables.
can anyone explain to me exactly how a constructor work.?