Answers

Question and Answer:

  Home  Ruby Developer

⟩ What is the difference in scope for these two variables @@name and @name?

The difference in scope for these two variables is that:

☛ @@name is a class variable

☛ @name is an instance variable

 123 views

More Questions for you: