Closed I-Hansson closed 1 year ago
It might be better to put the code involving trim into its own class which Volvo240 inherits from or delegates to. Then we could create a new car with trim without modifying or duplicating code.
https://github.com/hildalange/TDA553-lab1/blob/42f268dc23d3993b289895b8703fbae7c8698d5a/src/java/Volvo240.java#L5
It might be better to put the code involving trim into its own class which Volvo240 inherits from or delegates to. Then we could create a new car with trim without modifying or duplicating code.
https://github.com/hildalange/TDA553-lab1/blob/42f268dc23d3993b289895b8703fbae7c8698d5a/src/java/Volvo240.java#L5