Examveda

What is the purpose of the `extend` keyword in Ruby classes?

A. Adds methods from a module as class methods

B. Adds methods from a module as instance methods

C. Adds methods from a superclass

D. Adds methods to the superclass

Answer: Option A


Join The Discussion

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