Open martinjonsson01 opened 1 year ago
It seems like you've done this in multiple places inside this class. You don't need to pass in instance variables as parameters to methods on a class. Every non-static method on a class has access to all of the instance fields already.
https://github.com/ghazalghorabi/TDA553-lab1/blob/01f3360df2ab6d8a3dae4522fac81312009bb5d9/src/CarTransporter.java#L34-L39
It seems like you've done this in multiple places inside this class. You don't need to pass in instance variables as parameters to methods on a class. Every non-static method on a class has access to all of the instance fields already.
https://github.com/ghazalghorabi/TDA553-lab1/blob/01f3360df2ab6d8a3dae4522fac81312009bb5d9/src/CarTransporter.java#L34-L39