“I might repeat to myself slowly and soothingly, a list of quotations beautiful from minds profound—if I can remember any of the damn things.”
In this chapter:
–What is an array?
–Declaring an array.
–Array operations—using the “for” loop with an array.
–Arrays of objects.
Let’s take a moment to revisit the car example from the previous chapter on object-oriented programming. You may remember we spent a great deal of effort on developing a program that contained multiple instances of a class, that is, two objects.
Car myCar1; Car myCar2;
This was indeed an exciting moment in the development of our lives as computer programmers. It is likely you are contemplating a somewhat obvious ...