Pushing Logic Down the Stack: An Exercise in Refactoring
Erin Greenhalgh
12
Hi Ashish, thanks for your comment! You are absolutely right about the decrease_quantity method (that’s what happens when you try to code on public transit.) I updated the method to be correct. I also realized that I needed to call self.quantity since I am updating the value of the attribute.