Scala, Design Patterns, Programming, Builder Pattern, Coding.
validation at compile time it’s needed, can also be achieved but would be complex. The following it’s an example diagram of how the pattern it’s defined, without taking advantage of the features of scala. The BookBuilder through its set methods stores the title, author and price attributes and