Vidyalelo
Ruby Programming · Q21

Methods in Ruby

Programming · Ruby Programming · question 21

Q21

What does the private keyword do in Ruby?

A.
Makes methods accessible from outside the class
B.
Restricts access to methods below it
Answer
C.
Makes methods accessible from anywhere in the code
D.
None of the above

Answer: Option B

Solution

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