Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes mixin class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "mixin class" Watch "mixin class" New topic

mixin class

Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 249

I am confused about mixin class? I'v googled it but not able to get what is it. Please tell me what's the need to use mixin classes. How to implement them?
Thanks in advance...

Astha - OCPJP 6 (90%)
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3071

There are no Mixin classes in Java. All you have is interfaces. Mixins are supported in other JVM based languages like Scala (they are called as Traits there), Groovy and JRuby as well. But search for mixins or mixins in java does return few useful results.

Mohamed Sanaulla | My Blog
Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 249

It is sorta covered in the JavaRanch Style Guide.
subject: mixin class