Your class is almost finished.
The error you get is because you only defined one constructor, your homework requires you to define 2 different constructors.
The one constructor you got is this:
...
Type: Posts; User: Cornix
Your class is almost finished.
The error you get is because you only defined one constructor, your homework requires you to define 2 different constructors.
The one constructor you got is this:
...
Do you know what Getters / Setters are? Because that is what you have to write now.
Perhaps you should Google "Getters / Setter java", I bet you will find good tutorials on this topic, Getters and...
You should show us your Car class.
If you look at the main method that you have posted you will see all the methods / constructors that your Car class will need.