Vote count:
0
As per my understanding, in ruby we cannot call private method on self (calling private methods on self explicitly is not possible). If you call a method without any receiver, then it gets called on self, Then why cant we call a private method with self itself?
Sorry but I didn't really get what exactly is the difference in calling explicitly and implicitly(with self and without self).
can anyone tell me please.
asked 40 secs ago
What is the difference in calling a method explicitely and implicitely?
Aucun commentaire:
Enregistrer un commentaire