+ 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 Réponse
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