Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. case class Student(firstName: String, lastName: Option[String] = None)
  2.  
  3. Student("Foo")
  4. Student("Foo", None) // equal to the one above
  5. Student("Foo", Some("Bar"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement