Tell us the types of variables available in ruby class?
Answer Posted / Sunny
{"variables": "Ruby provides three main types of variables: instance variables (`@instance_variable`), class variables (`@@class_variable`), and global variables (`$global_variable`).","constants": "Constants in Ruby are defined using the `:` symbol and are case-sensitive. They can be accessed with their full name (e.g., CONSTANT_NAME) or by using the constant’s name as an identifier."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers