Scala entry notes - case class

New case class can not be instantiated (as it will call a default apply method), and their value can be compared

// define how 
case class Book (isbn: String)

  

 

Guess you like

Origin www.cnblogs.com/sunnystone85/p/11375143.html