Ruby Programming Language Question:
Download Questions PDF

Explain about variables?


There are four different types of variables they are local, instance, global, and class. Variables can be used in the program without any declaration and they can contain data of any type. A local variable contains lower case characters followed by name characters. Instance variable starts with a @ sign followed by name characters.

Download Ruby Interview Questions And Answers PDF

Previous QuestionNext Question
Explain about Class variable and global variable?Explain about ruby names?