Please explain the three levels of access control for ruby methods?
Answer / Shashi Bhushan Singh
Ruby methods have three levels of access control: public (accessible everywhere), protected (accessible only within the class and its subclasses), and private (accessible only within the method itself). You can declare these levels using the private, protected, or public keywords.
| Is This Answer Correct ? | 0 Yes | 0 No |
In how many ways items can be removed from array in Ruby?
Please explain what is mvc and why do we use it?
what is the difference between put and putc statement?
Explain while loop in ruby.
mention what is the difference between a single quote and double quote?
Tell me how do you remove nil values in array using ruby?
Tell me the role of modules and mixins in ruby?
What does irb stand for?
Explain the use of retry statement in ruby?
Explain the role of thread pooling in relation to the thread lifecycle in ruby?
Explain about Float, Dig and Max?
How to create a new time instance in Ruby?