Q26
Which method is used to define getter and setter methods for instance variables in Ruby?
A.
attr_accessor
AnswerB.
get_set
C.
setter_getter
D.
set_get
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board