In this assignment we will be creating an object-oriented order total price calculator. Your branch already has a failing test, your job is to make it pass. You will not need to make changes to the test file, but feel free to add more tests to the test file if it can help you in developing the code. Create a new file named 'order.rb' and put your code in there.
To do this, you will need to make 3 classes.
-
Product
The product class needs to have name and price accessors and a constructor to allow you to set those values. If you aren't sure how to do this, refer to the slides on the flexible initializer