Examveda

What is the purpose of the prepend method in Ruby?

A. Adds a method to the end of a class definition

B. Adds a module to the inheritance chain after the class itself

C. Adds a method to the beginning of a class definition

D. Adds a module to the inheritance chain before the class itself

Answer: Option D


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby