Traits are a tool that permits you to create reusable code in languages like PHP where multiple inheritances is not supported. A Trait cannot be instantiated on its own.
Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.