When you add a new feel to your class, you need to update the big three.
Think about it.
The Big Three are the constructor, which updates every field when you create an object getters which
let you get fields'.
And Setas, which let you update Fields'.
In this lesson, you're going to add an array field to your car class.
Here are the new requirements, there's been a change in plans now every car needs to come with spare
parts.
Spare parts is plural, so it has to be an array.
Based on the requirements, we need to add another field to the car class.
Now, every car object requires five fields, make price, year color and spare parts, which I'm just
going to call parts for short.
The car class needs to model every field in action, so add a string array, name parts.
And now every car object that you create from this car class is going to have Fifield's.
For now, remove the private keyword, we're going to put it back later and back in Maine, I'm going
to print the parts filled for Nissan.
It's no and I hope you can guess why you said Nissan equal to a new object of the car class you passed
and for arguments.
So whichever runs the constructor with four parameters.
The constructor only updates for fields and the parts field stays null.
For this reason, step one is to fix the constructor, we need to make sure it updates every single
field.
In this lesson, you added another feel to your car costs.
Now, each car object that you create from this car class is going to have by fields.
Whenever you add a new field, you need to update the big three.
And we're going to start with the constructor.