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 arrays and how they can be created?

1 Answers  


Explain ruby data types.

1 Answers  


What is the scope of a local variable in ruby?

1 Answers  


Explain case statement in Ruby?

1 Answers  


Explain Ruby hashes?

1 Answers  


Can you call a private method outside a ruby class using its object?

1 Answers  


Can you please explain what is the difference between string and symbol?

1 Answers  


How can you removed from array in ruby?

1 Answers  


How is object methods defined in ruby?

1 Answers  


Do you know what is the defined operator?

1 Answers  


What is the difference between extend and include?

1 Answers  


Tell me how symbol is different from variables?

1 Answers  


Categories