πŸ“Š Ruby
Q. What is the purpose of the include keyword in Ruby?
  • (A) To instantiate an object of a class
  • (B) To define a new class that inherits from an existing class
  • (C) To include a file in the current Ruby script
  • (D) To mix in module methods as instance methods of a class
πŸ’¬ Discuss
βœ… Correct Answer: (D) To mix in module methods as instance methods of a class

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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