Ruby Programming Language Question: Download Ruby PDF

Explain about methods?

Tweet Share WhatsApp

Answer:

Methods in ruby basically perform two functions, named operation and the code present in the class which does a specific function. In Ruby all your algorithms live in methods which inturn is present on objects. Ruby does not have any provision for functions. Code present in Ruby is always a method of some object. Behind the scenes ruby gives you the flexibility to work with methods as functions if you are considering working with other languages.

Download Ruby PDF Read All 26 Ruby Questions
Previous QuestionNext Question
Explain about normal method class?Explain about the defined operator?