Scala, Design Patterns, Programming, Builder Pattern, Coding.
${bookHobbit.title} written by ${bookHobbit.author} got a price of ${bookHobbit.price} euros") val bookNarnia: Book = BookBuilder() .setPrice(12.0) .setTitle("The Chronicles of Narnia") .setAuthor("C. S. Lewis") .build() System.out.println(s"The book ${bookNarnia.title} written by