Vidyalelo
Ruby Programming · Q25

Classes and Objects in Ruby

Programming · Ruby Programming · question 25

Q25

What is the syntax for defining an instance method in Ruby?

A.
def method_name
Answer
B.
def self.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