Wipro interview question

what is difference between function and methods?