Vidyalelo
Ruby Programming · Q70

Advanced Topics in Ruby

Programming · Ruby Programming · question 70

Q70

What is a "class variable" in Ruby?

A.
A variable that is initialized with the value of a constant
B.
A variable that is shared among all instances of a class
Answer
C.
A variable that is dynamically assigned based on the instance's state
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board