Please explain the three levels of access control for ruby methods?
Answer Posted / Shashi Bhushan Singh
Ruby methods have three levels of access control: public (accessible everywhere), protected (accessible only within the class and its subclasses), and private (accessible only within the method itself). You can declare these levels using the private, protected, or public keywords.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers