We should allow all builders to be reusable by 'undoing' any methods called on them. In this case I mean that everywhere we have a withoutX, like in CreditCardNumberBuilder and CreditCardBuilder (withoutFormatting), we should also have a withFormatting method.
We should allow all builders to be reusable by 'undoing' any methods called on them. In this case I mean that everywhere we have a
withoutX
, like inCreditCardNumberBuilder
andCreditCardBuilder
(withoutFormatting
), we should also have awithFormatting
method.