What are Mixins (as a concept)
问题 I'm trying to get my head around the Mixin concept but I can't seem to understand what it is. The way I see it is that it's a way to expand the capabilities of a class by using inheritance. I've read that people refer to them as "abstract subclasses". Can anyone explain why? I'd appreciate if you'd explain your answer based on the following example (From one of my lecture slideshows): 回答1: Before going into what a mix-in is, it's useful to describe the problems it's trying to solve. Say you