hildalange / TDA553-lab1

0 stars 0 forks source link

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

Closed I-Hansson closed 1 year ago

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