Skip to content

Conversation

@arrriiii
Copy link

Grocery Store

Congratulations! You're submitting your assignment.

Comprehension Questions

Question Response
Why is it useful to put classes inside modules? Modules allow classes to be organized into one data structure. They can group together the related classes.
What is accomplished with raise ArgumentError? I'm not a 100% on this. --raising the 'ArgumentError' allows the program to continue without crashing and prevents the user from entering unusual information.
Why do you think we made the .all & .find methods class methods? Why not instance methods? instance methods are handy when you want to manipulate or change the data -- .all & .find are best used as class methods because there is no need to manipulate the information. We are simply filtering through what is already given in the class
Why does it make sense to use inheritance for the online order? Online order has similar behavior as the Order class with the exception of shipping & status
Did the presence of automated tests change the way you thought about the problem? How? Yes, I could actually use the test to problem solve other tests-- not just the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant