How is visibility of methods changed in ruby?
Answer / 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 |
What are Ruby iterators?
In how many ways you can compare Ruby string?
Explain for loop in Ruby?
List some features of ruby?
What is the difference between a statement and an expression in ruby?
As you know ruby provides four types of variables. List them and provide a brief explanation for each?
What are freezing string in Ruby?
What is ruby class?
What are the object-oriented programming features supported by ruby?
Explain some of the looping structures available in ruby?
What is ruby?
Explain case statement in Ruby?