Q. What is the syntax for defining a method in Ruby?

  • (A) def method_name
  • (B) method method_name
  • (C) function method_name
  • (D) define method_name
πŸ’¬ Discuss
βœ… Correct Answer: (A) def method_name

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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