Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Please explain the three levels of access control for ruby methods?



Please explain the three levels of access control for ruby methods?..

Answer / 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

More Ruby Interview Questions

In how many ways items can be removed from array in Ruby?

1 Answers  


Please explain what is mvc and why do we use it?

1 Answers  


what is the difference between put and putc statement?

1 Answers  


Explain while loop in ruby.

1 Answers  


mention what is the difference between a single quote and double quote?

1 Answers  


Tell me how do you remove nil values in array using ruby?

1 Answers  


Tell me the role of modules and mixins in ruby?

0 Answers  


What does irb stand for?

1 Answers  


Explain the use of retry statement in ruby?

1 Answers  


Explain the role of thread pooling in relation to the thread lifecycle in ruby?

1 Answers  


Explain about Float, Dig and Max?

1 Answers  


How to create a new time instance in Ruby?

1 Answers  


Categories