πŸ“Š Ruby
Q. 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
πŸ’¬ Discuss
βœ… Correct Answer: (A) Adds methods from a module as class methods

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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