hildalange / TDA553-lab1

0 stars 0 forks source link

OCP: It might be better to put... #14

Closed I-Hansson closed 1 year ago

I-Hansson commented 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