Answer Posted / Sunny Rana
In Ruby, method visibility can be controlled using access modifiers such as public, private, and protected. By default, methods are public (visible to other objects). Private methods can only be called within the object they are defined, while protected methods can be called from the same object or its subclasses.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers