Vidyalelo
Ruby Programming · Q35

Methods in Ruby

Programming · Ruby Programming · question 35

Q35

What is the purpose of the `public` keyword in Ruby?

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

Answer: Option A

Solution

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