+ 1
what it means (self) in arguments of function and what it means pass
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