This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JavaFX and the fly likes What is Mixin Classes in JavaFX? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "What is Mixin Classes in JavaFX?" Watch "What is Mixin Classes in JavaFX?" New topic

What is Mixin Classes in JavaFX?

Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 802

What is Mixin Classes in JavaFX?

SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
jeevan stanzilous

Joined: Jun 16, 2009
Posts: 9
Mixins look like regular classes, but have the mixin modifier on their declaration.Mixin is similar to interfaces in Java technology. mixin inheritance allows you to extend multiple mixin classes, giving you many of the benefits of multiple inheritance.
Philippe Lhoste

Joined: Oct 23, 2009
Posts: 28
As said.
Somehow, they are between interfaces (as they define traits, and a class can implement several mixins) and abstract classes (as you can put method implementations in them).
I have the feeling they actually supersede abstract classes, which are probably kept only for compatibility (unless I miss something).
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: What is Mixin Classes in JavaFX?
jQuery in Action, 3rd edition