Vidyalelo
Ruby Programming · Q11

Methods in Ruby

Programming · Ruby Programming · question 11

Q11

Which of the following is used to define a class method in Ruby?

A.
def self.method_name
Answer
B.
method method_name
C.
class method_name
D.
def method_name

Answer: Option A

Solution

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