There is duplication in the code for the methods incrementSpeed and decrementSpeed in Saab95 and Volvo240. Find a way to put the common code into the Car class. (Hint: there is no reason why one class should use Math.min and Math.max and the other should not, this was a defect in the original code you were given.)
There is duplication in the code for the methods incrementSpeed and decrementSpeed in Saab95 and Volvo240. Find a way to put the common code into the Car class. (Hint: there is no reason why one class should use Math.min and Math.max and the other should not, this was a defect in the original code you were given.)
https://github.com/adamkvarnsund/Group-23/blob/65f4ea1b88b30c6386122ff053393bab810dfe69/src/Volvo240.java#L17-L27