Scala for Java Refugees Part 5: Traits and Types - Code Commit
Scala doesn't have any direct analogue to Java's interfaces. This answer may seem a bit surprising, given what I've been saying about similarity to Java. The fact is that Java's interfaces are really a very weak mechanism and a paltry imitation of their forebear: multiple inheritance.
Read full article from Scala for Java Refugees Part 5: Traits and Types - Code Commit
No comments:
Post a Comment