How can i change what value an array returns?

I am trying to make a subclass of Array so that when i ask for a certain value of the array, i can alter what value i get. What method do i need to override to achieve this?