Question: what is the difference between trait and method?
Answer: 13 Answers. An interface defines a set of methods that the implementing class must implement. ... A Trait is intended to reduce some limitations of single inheritance by enabling a developer to reuse sets of methods freely in several independent classes living in different class hierarchies.