Q23
What is the purpose of the initialize method in Ruby classes?
A.
It defines instance methods
B.
It defines class methods
C.
It defines class variables
D.
It is automatically called when a new object is created and allows initialization of instance variables
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board