Ruby Programming Language Question:

Explain about variables?

Tweet Share WhatsApp

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 PDF Read All 26 Ruby Questions
Previous QuestionNext Question
Explain about Class variable and global variable?Explain about ruby names?