I have a verrrry limited knowledge of Java. One of the components of an assessed task I have to complete is to create a method which displays the attributes of
all objects of the class.
Here's an example to show you what I mean:
Class = Car
Attributes = model, colour
.... and in a driver class, objects of 'Car' type have been created: car1, car2, car3
How would you go about creating a method in the Car class which displays the model and colour of each object?