Vidyalelo
Ruby Programming · Q33

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 33

Q33

What is the purpose of the initialize method in Ruby classes?

A.
To set initial values for instance variables
Answer
B.
To define class variables
C.
To define class methods
D.
To define instance methods

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board