Method invocation and function invocation