Examveda
Examveda

Which of the following is used to access instance variables in Ruby?

A. @variable

B. $variable

C. @@variable

D. variable

Answer: Option A


This Question Belongs to Ruby Programming >> Classes And Objects In Ruby

Join The Discussion

Related Questions on Classes and Objects in Ruby