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

can you post the code, i really cannot understand what to do?