java Programming Glossary: trait2
Using Scala traits with implemented methods in Java http://stackoverflow.com/questions/7637752/using-scala-traits-with-implemented-methods-in-java traits works underneath trait Trait1 def ping trait Trait2 def pong class Foo extends Trait1 with Trait2 translates to.. ping trait Trait2 def pong class Foo extends Trait1 with Trait2 translates to class Foo implements Trait1 Trait2 public void.. with Trait2 translates to class Foo implements Trait1 Trait2 public void ping Trait1 class.ping this works because `this`..
|