Adding a new method
We've just received a feature request from the Basketballs R Us management! They've decided to start shipping basketballs without air in them, instead of inflated. We need to add a method to the Basketball simulation for deflating a Basketball:public void deflate()after which
isDribbleable should return false.
Add this method, and add a few lines to BasketballTest to verify that it's working.
Checkpoint 1
- Show the TA your
StringTestclass from the third page - Show the TA your
RandomTestclass from the third page - Show the TA your modified
BasketballandBasketballTestclasses with the newdeflatemethod