Frage im Vorstellungsgespräch bei Tech Mahindra

what is the difference between function and method?