Why Traits in Magento 2

In PHP, Multiple inheritence was supported with the help of Interface. But interface implementation is not flexible like class inheritance. So to make this happen traits came into the picuture. We will understand this concept with below :- With the help of inheritance we make our code re-usable, it means same property and methods doesn’t(…)