Thanks for your reply!
In my real application there is maybe a bit more communality but I'd say even in this example there probably is. Even in the real world you may find VehicleDealers who do cars and bikes because all they need to do is call up the builder/factory to make a vehicle and maybe give them some of the details such as colour, and these are mostly the same options for both types of vehicles. As far as I can see, if I used your example, I would still end up dealing with pretty much the same parameters/attributes in the concrete builders and product classes, which was my original problem. However, I think that the mistake was to try and make the builders check those attributes instead of letting the product classes deal with it.

In reply to Re^2: Builder design pattern with lots of parameters - trying to declutter design by tospo
in thread Builder design pattern with lots of parameters - trying to declutter design by tospo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.