wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » JavaFX
Bookmark "What is Mixin Classes in JavaFX?" Watch "What is Mixin Classes in JavaFX?" New topic
Author

What is Mixin Classes in JavaFX?

Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 787

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
Greenhorn

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.

http://java.sun.com/javafx/1/tutorials/core/classes/#mixins
Philippe Lhoste
Greenhorn

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).
 
 
subject: What is Mixin Classes in JavaFX?
 
Similar Threads
Talk about: JavaFX: Developing Rich Internet Applications
definition of mixin interface
mixin class
What is JavaFX
Multiple inheritance doubt