Can you call a private method outside a ruby class using its object?
Answer Posted / Vishal Jane
No, private methods in Ruby can only be called within the same class where they are defined. They cannot be accessed or invoked from outside of the class or even by its objects.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers