This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "mixin class" Watch "mixin class" New topic
Author

mixin class

Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 245

Hi
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: 3068
    
  33

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

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