In my opinion, first statemen in a constructor it must be call to parent class constructor using super reserve-word (or keyword | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

In my opinion, first statemen in a constructor it must be call to parent class constructor using super reserve-word (or keyword

Or it can be call to another constructor (overloaded constructor as special method) to set class private instance variablesor call to class other methods.

20th Oct 2022, 10:04 PM
Oliver Pasaribu
Oliver Pasaribu - avatar
1 ответ
+ 1
I intent to state about the the first statement or command line instruction in a most constructor or special method or special member fumction.
22nd Oct 2022, 10:01 PM
Oliver Pasaribu
Oliver Pasaribu - avatar