Vidyalelo
Ruby Programming · Q24

Object Oriented Programming (OOP) Concepts in Ruby

Programming · Ruby Programming · question 24

Q24

Which keyword is used to define a class method in Ruby?

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

Answer: Option C

Solution

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