+ 1

This keyword

I need to know the exact purpose and usage of this keyword in the coding,can anyone help .......

12th Nov 2017, 11:24 PM
Santhosh Selvam
Santhosh Selvam - avatar
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.
12th Nov 2017, 11:41 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
12th Nov 2017, 11:31 PM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 2
bro, what is a instant method???
12th Nov 2017, 11:45 PM
Santhosh Selvam
Santhosh Selvam - avatar
+ 2
all methods except static methods and constructor are instant methods,which requires an object to call it in the main ,isn't it?
12th Nov 2017, 11:52 PM
Santhosh Selvam
Santhosh Selvam - avatar
+ 1
what I said is also same as yours, whats wrong in it
12th Nov 2017, 11:39 PM
Santhosh Selvam
Santhosh Selvam - avatar
+ 1
ok bro, tanz
12th Nov 2017, 11:56 PM
Santhosh Selvam
Santhosh Selvam - avatar
- 2
which means this keyword is only used in the constructor ,to point out the current object
12th Nov 2017, 11:35 PM
Santhosh Selvam
Santhosh Selvam - avatar