Ruby Programming Language Question:
Download Job Interview Questions and Answers PDF
Explain about variables?
Answer:
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 Question | Next Question |
Explain about Class variable and global variable? | Explain about ruby names? |