+ 1
This keyword
I need to know the exact purpose and usage of this keyword in the coding,can anyone help .......
7 Respuestas
+ 8
Constructors are special methods invoked when an object is created and are used to initialize them.
A constructor can be used to provide initial values for object attributes.
+ 7
https://www.sololearn.com/Course/Java/?ref=app
You mean it was not here??
+ 2
bro, what is a instant method???
+ 2
all methods except static methods and constructor are instant methods,which requires an object to call it in the main ,isn't it?
+ 1
what I said is also same as yours, whats wrong in it
+ 1
ok bro, tanz
- 2
which means this keyword is only used in the constructor ,to point out the current object