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


Tell me can you call a private method outside a ruby class using its object?



Tell me can you call a private method outside a ruby class using its object?..

Answer / Manoj Kumar Rajput

Private methods in Ruby are not accessible outside of the class where they are defined. You cannot directly call a private method on an instance from outside the class. However, there are some workarounds such as using singleton classes or module functions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What are the different uses of ruby modules?

1 Answers  


What are Ruby iterators?

1 Answers  


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

1 Answers  


What are advantages of using ruby?

1 Answers  


Tell me an array [1,2,34,5,6,7,8,9], product it using a method?

1 Answers  


difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?

1 Answers  


Who is the developer of Ruby?

1 Answers  


Please explain the three levels of access control for ruby methods?

1 Answers  


Tell me what is the difference between active support's “hashwithindifferent” and ruby's “hash” ?

1 Answers  


How do you handle exceptions in ruby code?

1 Answers  


Explain about the command line options?

1 Answers  


What is ruby?

1 Answers  


Categories