Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is Mixin Classes in JavaFX?  RSS feed

 
Ninad Kulkarni
Ranch Hand
Posts: 802
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Mixin Classes in JavaFX?
 
jeevan stanzilous
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!