Error Call to a member function getNome() on array