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

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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