Vidyalelo
Ruby Programming · Q33

Methods in Ruby

Programming · Ruby Programming · question 33

Q33

What does the `protected` 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