Vidyalelo
Ruby Programming · Q31

Classes and Objects in Ruby

Programming · Ruby Programming · question 31

Q31

What is the method used to define a class method in Ruby?

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

Answer: Option A

Solution

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