Open martinjonsson01 opened 1 year ago
I might've missed something, but I don't see why you are hardcoding this value. Why not have it as a parameter in the constructor?
In general, it's bad practice to hard code magic numbers.
https://github.com/ghazalghorabi/TDA553-lab1/blob/7f372da30e043f0290b53230226a6b7a94890562/src/CarTransporter.java#L21
I might've missed something, but I don't see why you are hardcoding this value. Why not have it as a parameter in the constructor?
In general, it's bad practice to hard code magic numbers.
https://github.com/ghazalghorabi/TDA553-lab1/blob/7f372da30e043f0290b53230226a6b7a94890562/src/CarTransporter.java#L21