Examveda

What is the purpose of the extend keyword in Ruby?

A. Adds methods from a module as class methods

B. Adds methods from a module as instance methods

C. Initializes a new instance of a class

D. Calls a superclass method

Answer: Option A


Join The Discussion

Related Questions on Object Oriented Programming (OOP) Concepts in Ruby