Q24
What is the purpose of the attr_accessor method in Ruby classes?
A.
To create getter and setter methods for instance variables
AnswerB.
To define class methods
C.
To define instance methods
D.
To create new instances
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board