Barclays interview question

Difference between a method and attribute.