this is just a school assignment. I learned
java for 4 weeks only. hehe
We are in Beginning Java, right?
And I am given a drive programme
Car car1 = new Car("Toyota", "Camry");
Car car2 = new Car("Hyundai", "Santa Fe");
Car car3 = new Car("Ford", "Escape");
...
...
...
System.out.println("How many cars? " + Car.getCount());
...
In this case, I think I cant count objects in a loop. This make me believe that I should use a list (which I have not learned yet). **wired
And not just counting, I will need to do
car2.setMake(make), car1.setModel(model). All in all, I have to able to access all objects.