14.9 — Overloading the subscript operator
When working with arrays, we typically use the subscript operator ([]) to index specific elements of an array: myArray[0] = 7; // put the value 7 in the first element of the array However, consider the following IntList class, which has a member variable that is an array: class IntList …