How do I modify the values in an object array?
Hello, I am new to these forums, and i would like to know how one would go about modifying the values for a particular object in an object array.
For example, say I had a constructor for an object of type "Car", having 2 integer variables, written in "Car" class.
I then create an array of type "Car" with a length of 10 in my test class.
How would I modify the 2 integer values?
Would I need a mutator method in my Car class to do this?
Thanks for your help ahead of time. :)