Scala, Design Patterns, Programming, Builder Pattern, Coding.
object Test extends App { val book: Book = new Book("The Hobbit", "J.R.R. Tolkien", 10.5) System.out.println(s"The book ${book.title} written by ${book.author} got a price of ${book.price} euros") val anonymousBook: Book = new Book(title = "Book X", price = 10.5) System.out.println(s"The book