Q17
What is the main purpose of a constructor in a Ruby class?
A.
To define getter and setter methods
B.
To create new instances of the class
C.
To define class methods
D.
To initialize instance variables
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board