Let us say we are writing an algorithm for the method "findFirst" in the class MyArray.
Recall that "this" is how we reference the current object that we are writing an algorithm for.
Because the method is in the class MyArray, that means that our context is the entire red box for MyArray. I.e., all of the ivars and other methods in the class are available to use.
We would reference them like this:
- this.array
- this.get(myIndex)
- this.set(myIndex, myElem)