| 1. | Classes inherit from the " mixin class 类从“ mixin类”中继承 |
| 2. | Raymond , your bartender ' s gonna be mixin ' up a little love potion 雷蒙德,你酒保要调一杯“爱”之酒 |
| 3. | A " mixin class " is an interesting concept , and is often a good design choice . a class like “ mixin类”是个有趣的概念,也常常是个很好的设计选择。 |
| 4. | However , unlike an abstract class , a mixin does not try to contain the framework for a child )然而,与抽象类不同的是, mixin并不试图包括子类的框架。 |
| 5. | Like an abstract class , a mixin is unlikely to be instantiated directly this is not as much a matter of prohibition as usefulness - i do not raise 和抽象类相似, mixin类不能直接被实例化(其有效性与禁止不同,在mixin中我并没有提出 |
| 6. | You can think of a mixin as a kind of mashup for a component ; it combines the behavior of the component with the behavior of the mixin , and bundles it all in one place 你可以把混合组件看作一类柔和在一起的组件,他结合组件行为和混合组件行为,并且把他们捆在一处。 |
| 7. | In the other approaches , new methods are added via annotations or xml by specifying that a class extends an additional mixin class and inherits those additional members 而在其他技术中,则要指定一个类,扩展额外的混合类并继承那些额外的成员,通过注释或xml添加新方法。 |
| 8. | Mixins may have persistent fields , but currently , this is not implemented perfectly ( there is a potential for a name clash between a mixin and the component or another mixin ) 混合组件可以有持久化属性,但是目前,这没有完全被实现(混合组件和组件或和其他混合组件可能存在命名冲突) 。 |