Scala, Design Patterns, Programming, Builder Pattern, Coding.
implementation of an example using require statements for the validation of the parameters. case class Book(title: String = "", author: String = "", price: Double = 0.0) { require(title != "", "A title it's required for the book") require(author != "", "An author it's required for the book") }