permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 245

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: 3064

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: 245

I agree. Here's the link:
subject: mixin class
Similar Threads
mixin extending custom node
library handiness compared to groovy?
What is Mixin Classes in JavaFX?
Multiple inheritance doubt
Decorator Vs Java Mixin