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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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