I am about 15 minutes late, but it looks like we’re doing something interesting today. We’re coding an “Array Class” which will take care of a lot things we’ve done manually in the past. Specifically, we’re going to be taking care of the size of the array, and dynamic resizing.
Professor Weiss is writing an Array class now. As necessary, we’re going to resize the array by creating a new one changing the pointer to it. The constructor of this class is going to have a private variable called intialCapacity
Capacity is the total number of elements in the array. Size is the number we’re using now. Prof Weiss is using a default value for initial capacity. If you don’t pass an initial size, you’ll get 100 items.