This page is no longer maintained — Please continue to the home page at www.scala-lang.org
>>>>> "Axel" == Axel Rose writes:
Axel> object Cards { sealed abstract class Suit case class Club extends Axel> Suit
I suggest using "case object" here, not "case class". You don't ever want to have more than one instance of Club.
Create new account
Retrieve lost password
Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland