Ruby Programming Language Question: Download Questions PDF
Explain the use of global variable $ in Ruby?
![Ruby Interview Answer Ruby Interview Question](https://globalguideline.com/public/images/interview/2.png)
Answer:
If you declare one variable as global we can access any where, where as class variable visibility only in the class
Download Ruby Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the use of load and require in ruby? | Explain the difference between nil and false in ruby? |