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...


Explain the three levels of access control for ruby methods?



Explain the three levels of access control for ruby methods?..

Answer / Rakhi Shankhdhar

In Ruby, there are three levels of method access control: public (default), private, and protected. Public methods can be accessed from anywhere, while private methods can only be called internally within the class they're defined. Protected methods act similarly to private methods but also allow access from child classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What things we can define in the model?

1 Answers  


Explain about interpolation?

1 Answers  


How would you create getter and setter methods in ruby?

1 Answers  


Explain how Symbol is different from variables?

1 Answers  


How to access Ruby strings elements in an application?

1 Answers  


Explain module mixins in Ruby?

1 Answers  


what is the difference extend and include?

1 Answers  


What is Ruby programming language?

1 Answers  


Tell us how would you implement hash in ruby internally?

1 Answers  


How is class methods defined in ruby?

1 Answers  


How to write multiline string in Ruby?

1 Answers  


Tell me what is the difference between calling super() and super call?

1 Answers  


Categories