Vidyalelo
Ruby Programming · Q6

Methods in Ruby

Programming · Ruby Programming · question 6

Q6

Which of the following is a correct way to call a method with arguments in Ruby?

A.
method_name(arguments)
Answer
B.
method_name.arguments
C.
MethodName(arguments)
D.
None of the above

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board