Instance Variable
- Syntax: (@apple)
- To store shared data that all the methods(in the same class) can use.
- An instance variable is not visible outside the object it is in.
- But when you create an attr_accessor, it creates an instance variable and also makes it visible (and editable) outside the object
https://stackoverflow.com/questions/12924080/difference-between-instance-variable-and-attr-accessor