Vidyalelo
Ruby Programming · Q36

Classes and Objects in Ruby

Programming · Ruby Programming · question 36

Q36

Which method is 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