what is the difference between trait and method?
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.