Q. Which of the following is used to define a class method in Ruby?

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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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