Pregunta de entrevista de Wipro

what is difference between function and methods?