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

What is the scope of a local variable in ruby?

1 Answers  


Do you know what is the defined operator?

1 Answers  


Explain Ruby if-else statement?

1 Answers  


How to create a new time instance in Ruby?

1 Answers  


Is ruby supports single inheritance/ multiple inheritance or both?

1 Answers  


Explain until loop in ruby.

1 Answers  


Tell us what is class libraries in ruby?

1 Answers  


how many ways you can create a concatenating string?

1 Answers  


How to access Ruby array elements? How many methods are used to access Ruby elements?

1 Answers  


Describe the environment variables present in Ruby?

1 Answers  


What are the only two values that are falsy?

1 Answers  


How would you freeze an object in ruby?

1 Answers  


Categories