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.
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop