作者: Patrick Steyaert , Wim Codenie , Theo D’Hondt , Koen De Hondt , Carine Lucas
关键词:
摘要: Mixin-based inheritance is an technique that has been shown to subsume a variety of different mechanisms. It based directly upon incremental modification model inheritance. This paper addresses the question how mixins can be seen as named attributes classes same way objects, methods, and also in their own right, are classes. The general idea let class itself have control over it extended. results powerful abstraction mechanism construction hierarchies two ways. Firstly, by being able constrain hierarchy; secondly, extend specific for class. Nested direct consequence having attributes. scope rules nested discussed, preserve encapsulation objects.