[General boards] [Winter 2019 courses] [Fall 2018 courses] [Summer 2018 courses] [Older or newer terms]

Modifying FishTank


In the description it states that we should not modify the FishTank class however for testing it seems to be helpful to have some kind of clear() method that empty’s entities, to avoid strange collisions in the fish tank since it’s a static variable and all the different tests could cause troublesome over lap. When auto testing will our personal FishTank class be used? Or should we really not add anything to the class at all?


Your class will be used, it’s fine to make a clear() method.