M

Mr. Dubey • 52.48K Points
Coach

Q. Which of the following is NOT a valid method definition syntax in Ruby?

  • (A) def method_name; end
  • (B) define method_name; end
  • (C) define_method(:method_name) { }; end
  • (D) def self.method_name; end
  • Correct Answer - Option(B)
  • Views: 88
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics