Explain about variables?
Answer / Krishna Kumar Tiwari
Variables in Ruby are containers for storing values. Variables can be assigned values using the '=' operator and should follow naming conventions mentioned earlier (e.g., @variable_name). There are different types of variables: instance variables (@variable), class variables (@@variable), local variables (variable), and global variables ($variable).
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain retry statement in ruby.
Explain the use of retry statement in ruby?
Is ruby a statically typed or a dynamically typed language?
Tell me can you call a private method outside a ruby class using its object?
Tell us the types of variables available in ruby class?
What is the difference between ruby 1.9 and ruby 2.0?
Why Ruby is known as a language of flexibility?
Explain about normal method class?
How ruby looks up a method to invoke?
Tell me how symbol is different from variables?
What is the difference between calling super and calling super()?
Explain me what the difference is between false and nil in ruby?