Re: Question About Builder Object
- From: "H. S. Lahman" <h.lahman@xxxxxxxxxxx>
- Date: Tue, 27 Feb 2007 17:03:40 GMT
Responding to Parwal.sandeep...
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 ..
The concrete builder needs to provide an interface for the [Builder] public function. The polymorphic dispatch depends upon that so the the client does not have to know which flavor of Builder is actually being invoked.
However, there is nothing to prevent that implementation from using indirection to a private function:
class Builder
{
public:
virtual BuildPart();
...
}
class ConcreteBuilder
{
public:
BuildPart() {myPrivateBuildPart();};
...
private:
myPrivateBuildPart()
...
}
*************
There is nothing wrong with me that could
not be cured by a capful of Drano.
H. S. Lahman
hsl@xxxxxxxxxxxxxxxxx
Pathfinder Solutions
http://www.pathfindermda.com
blog: http://pathfinderpeople.blogs.com/hslahman
"Model-Based Translation: The Next Step in Agile Development". Email
info@xxxxxxxxxxxxxxxxx for your copy.
Pathfinder is hiring: http://www.pathfindermda.com/about_us/careers_pos3.php.
(888)OOA-PATH
.
- References:
- Question About Builder Object
- From: parwal . sandeep
- Question About Builder Object
- Prev by Date: Re: Creating Full Name from given, initials, sn, when some might be null
- Next by Date: Re: data structure complexity vs. application maintenance cost
- Previous by thread: Question About Builder Object
- Next by thread: Re: Question About Builder Object
- Index(es):