Vidyalelo
Ruby Programming · Q20

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 20

Q20

Which keyword is used to define an instance method in Ruby?

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

Answer: Option C

Solution

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