Examveda
Examveda

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

A. Restricts access to methods below it

B. Allows access to methods below it

C. Makes all methods public

D. None of the above

Answer: Option A


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby