πŸ“Š Ruby
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Adds a module to the inheritance chain before the class itself

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
143
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate