Created
March 20, 2013 12:17
-
-
Save beranradek/5204228 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Person(name: String, birthDate: java.util.Date) | |
// nevhodny mutable typ java.util.Date | |
case class Man(var name: String, birthDate: java.util.Date, | |
impertinent: Boolean) extends Person(name, birthDate) | |
case class Woman(private val name: String, birthDate: java.util.Date, | |
quarrelsome: Boolean) extends Person(name, birthDate) | |
class XMan(name: String, birthDate: java.util.Date, impertinent: Boolean, | |
ability: String) extends Man(name, birthDate, impertinent) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment