Barclays Interview Question

Difference between a method and attribute.