Capgemini Interview Question

Difference between methods and functions