It’s basically what the topic says. It feels good.
At present, the only minor trouble I feel is that ide does not think the two methods are related.
The person who answered the question had better try something related. Not only trait, but also the interface.
TraitIt is used to solve the problem of multiple inheritance in itself, but it is not multiple inheritance in the original sense, so it will not be related to the parent class or the parent interface. It only covers, and there is a difference between logic and multiple inheritance.