Vidyalelo
Ruby Programming · Q1

Methods in Ruby

Programming · Ruby Programming · question 1

Q1

What is the syntax for defining a method in Ruby?

A.
def method_name
Answer
B.
method method_name
C.
function method_name
D.
define method_name

Answer: Option A

Solution

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