java traits or mixins pattern?
Is there a way to emulate mixins or traits in java? basically, I need a way to do multiple inheritance so I can add common business logic to several classes Alex B I would encapsulate all of the business logic into a new class BusinessLogic and have each class that needs BusinessLogic make calls to the class. If you need a single rooted heirarchy for your classes that make calls to BusinessLogic , you'll have to create an interface as well ( BusinessLogicInterface ?) In pseudo-code: interface BusinessLogicInterace { void method1(); void method2(); } class BusinessLogic implements