ATM Challenge Flashcards
1
Q
What is an attr_accessor?
A
it is a class method that gives a class setters and getter methods so that you can use the variables
2
Q
What is an instance double?
A
They are fake objects that we use for testing.
Doubles are objects that can be used as stand-ins for instances of other classes. Even if they still are not defined.
We use instance doubles when we don’t have created classes.