M

Mr. Dubey • 52.48K Points
Coach

Q. Which of the following is a correct way to define a method that takes multiple arguments in Ruby?

  • (A) def method(arg1, arg2)
  • (B) def method(arg1, arg2); end
  • (C) def method(arg1 arg2); end
  • (D) def method(arg1 arg2)
  • Correct Answer - Option(A)
  • Views: 36
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics