Scala, Design Patterns, Programming, Builder Pattern, Coding.
instantiate BookBuilder. This second constructor it’s used by the different set methods of the BookBuilder to instantiate a new BookBuilder with the field provided to the set method and the other fields stored already in the BookBuilder. The following it’s the implementation of the constructor