The
Vec
getItem(
index
)
method should:
If
index
is an invalid index for our dynamic array throw a
range_error
.
Otherwise, return the value of
myArray[
index
]
.