Not sure why my array is not allowed to use a function (OOP)

oh i see, thankyou for the pointers, i will keep trying.