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