Examveda

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

C. A variable that is dynamically assigned based on the instance's state

D. None of the above

Answer: Option B


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby