what it means (self) in arguments of function and what it means pass | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

what it means (self) in arguments of function and what it means pass

27th Jan 2017, 1:22 PM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
1 Resposta
0
self or this. is used to refer to the class object instead of a parameter. class a{ int num; a(int num){ this.num = num; //self.num = num; } } hope this helps
23rd Feb 2017, 7:00 PM
Michael Szczepanski
Michael Szczepanski - avatar