Просто кусок кода на Scala:
trait Animal
trait Paws
trait Tail
case class >^*^<(value:Int) extends Animal with Paws with Tail{
def ^^ (): >^*^< = {
new >^*^<(value+1)
}
override def toString() = "meow " * value
}
case object >>^-@-^<< extends >^*^< (8) {
override def toString() = super.
(
Read more... )