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

Do you know how ruby looks up a method to invoke?

1 Answers  


what is the syntax for Ruby collect Iterator?

1 Answers  


What does mri most commonly stand for?

1 Answers  


Mention what is the command to create a migration?

1 Answers  


Is ruby supports single inheritance/ multiple inheritance or both?

1 Answers  


What is ruby object?

1 Answers  


What is the difference between nil and false in ruby?

1 Answers  


How is visibility of methods changed in ruby?

1 Answers  


What is rvm?

1 Answers  


Explain while loop in ruby.

1 Answers  


What must you do first before you can invoke an unboundmethod object?

1 Answers  


what is Interpolation in Ruby?

1 Answers  


Categories