Pregunta de entrevista de Barclays

Difference between a method and attribute.