Vidyalelo
Ruby Programming · Q8

Methods in Ruby

Programming · Ruby Programming · question 8

Q8

In Ruby, what does the private keyword do when used in a class?

A.
Restricts access to methods below it
Answer
B.
Allows access to methods below it
C.
Makes all methods public
D.
None of the above

Answer: Option A

Solution

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