T& operator(int index)
return a reference (not a value), so you can operate on the element.
cin >> arr[i];
you need to differentiate element from container
`arr' is an Array, the container
`arr[i]' is an element, in this case an `int'.
reading an int is known, you don't need to overload operator>>