0

Why does this code not create two objects with different specifications

I thought the code would create two engines with different specifications but when the second object is created the specifications of the first object are also changed https://code.sololearn.com/c06SC1Eo49xX/?ref=app

13th May 2018, 12:23 PM
[A^dr3w]
[A^dr3w] - avatar
3 Réponses
+ 3
I'm not a professional nor I know Java but maybe it's because the 'fitted', 'size' and 'type' properties are static
13th May 2018, 1:14 PM
luʁi
+ 1
Thankyou two weeks i have been back and forth playing with this problem. Sometimes when its starring you in the face you need someone on the outside to give you a nudge. thanks again i can now get nack to developing the code.
13th May 2018, 1:22 PM
[A^dr3w]
[A^dr3w] - avatar
+ 1
Good luck with your code 👍
13th May 2018, 1:23 PM
luʁi