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