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


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



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

Answer / Vishal Jane

No, private methods in Ruby can only be called within the same class where they are defined. They cannot be accessed or invoked from outside of the class or even by its objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is the use of global variable $ in Ruby?

1 Answers  


What function converts all html special symbols to html entities in ruby?

1 Answers  


What things we can define in the model?

1 Answers  


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

1 Answers  


Explain ruby ranges. What are the ways to define ranges?

1 Answers  


Can method names be capitalized?

1 Answers  


How to create a new time instance in Ruby?

1 Answers  


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

1 Answers  


How would you freeze an object in ruby?

1 Answers  


Tell me how would you freeze an object in ruby? Can you provide a simple example?

1 Answers  


What are ruby blocks.

1 Answers  


What is Ruby programming language?

1 Answers  


Categories