Link Details

Link 546953 thumbnail
User 852347 avatar

By strepx
via vigilance.co.in
Published: Jan 20 2011 / 11:58

This video clip explains what happens when we develop a trait (that includes both abstract and concrete methods) in Scala and compile it. The outcome is an interface in Java together with a class. For each one of the concrete methods the traits includes we will find a static method within that class. We can call those static methods from our code in Java. The name of that additional class includes the name of the interface + ‘$class’.
  • 3
  • 1
  • 1604
  • 3

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (3)



Voters Against This Link (1)



Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax