πŸ“Š Ruby
Q. What is the method used to define instance variables in Ruby?
  • (A) @variable_name
  • (B) def variable_name
  • (C) self.variable_name
  • (D) instance.variable_name
πŸ’¬ Discuss
βœ… Correct Answer: (A) @variable_name

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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