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


How is visibility of methods changed in ruby?



How is visibility of methods changed in ruby?..

Answer / Sunny Rana

In Ruby, method visibility can be controlled using access modifiers such as public, private, and protected. By default, methods are public (visible to other objects). Private methods can only be called within the object they are defined, while protected methods can be called from the same object or its subclasses.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What are Ruby iterators?

1 Answers  


In how many ways you can compare Ruby string?

1 Answers  


Explain for loop in Ruby?

1 Answers  


List some features of ruby?

1 Answers  


What is the difference between a statement and an expression in ruby?

1 Answers  


As you know ruby provides four types of variables. List them and provide a brief explanation for each?

1 Answers  


What are freezing string in Ruby?

1 Answers  


What is ruby class?

1 Answers  


What are the object-oriented programming features supported by ruby?

1 Answers  


Explain some of the looping structures available in ruby?

1 Answers  


What is ruby?

1 Answers  


Explain case statement in Ruby?

1 Answers  


Categories