Examveda

What does the private keyword do in Ruby?

A. Makes methods accessible from outside the class

B. Restricts access to methods below it

C. Makes methods accessible from anywhere in the code

D. None of the above

Answer: Option B


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby