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

Do you know how ruby looks up a method to invoke?

1 Answers  


Explain the role of modules and mixins in ruby?

1 Answers  


What is a struct in ruby?

1 Answers  


Tell us what is the difference between dynamic and static scaffolding?

1 Answers  


Are numeric objects mutable in ruby?

1 Answers  


what is the purpose of the rakefile available in the demo directory in ruby?

1 Answers  


Explain about portability?

1 Answers  


Explain ampersand parameter (&block) in Ruby?

1 Answers  


what is Interpolation in Ruby?

1 Answers  


What is a symbol in ruby?

1 Answers  


Explain each of the following operators and how and when they should be used: ==, ===, eql?, Equal?

1 Answers  


Explain about class libraries in ruby?

1 Answers  


Categories