Re: Question About Builder Object
- From: "Nick Malik [Microsoft]" <nickmalik@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 06:12:32 -0800
To add to H.S.Lahman's response,
You can combine patterns as well. For example, if you want your concrete
builder to use a strategy to construct the object.
<calling-code>
MyBuildStrategy strat = MyBuildStrategy.StratFactory(); // see factory
method pattern
MyBuilder bld = MyBuilder.CreateBuilder( strat ); //
assign in the strategy to use by builder
MyTargetObject myobj = bld.CreateTargetObject(); // when
building the object, use the strategy.
</calling-code>
Of course, if the concrete builder has a one-to-one relationship with the
strategy, it is little more than a strategy itself, so the factory method
pattern will do with a strategy pattern under it. Depends on how you want
to isolate the dependencies.
--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik
Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
<parwal.sandeep@xxxxxxxxx> wrote in message
news:1172583756.430294.30920@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Group !!
I'm newbie in Design pattern.
I'm using Builder pattern for my application.
i want to know that can Concrete builder have their own private
function which can be called by
public function which concrete builder has to implement..
or
concrete builder can only have the public function ..
can any body tell me what is standard for that ..
thanks in advance !!!
Sandeep
.
- References:
- Question About Builder Object
- From: parwal . sandeep
- Question About Builder Object
- Prev by Date: Call for Papers with Extended Deadline: 2007 International Conference on Multimedia Systems and Applications (MSA'07), June 25-28, 2007, USA
- Next by Date: Re: Relational-to-OOP Tax
- Previous by thread: Re: Question About Builder Object
- Next by thread: Call for Papers with Extended Deadline: 2007 International Conference on Multimedia Systems and Applications (MSA'07), June 25-28, 2007, USA
- Index(es):
Relevant Pages
|