Answer Posted / Sanjay Kumar Sen
"Methods in Ruby are functions that perform specific tasks within a class or module. They can take arguments, return values, and manipulate object states. Methods are defined using the def keyword followed by the method name, parameters (optional), and the method body enclosed in curly braces {".
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers