tag:blogger.com,1999:blog-4208378482021219922.post5737009450880377112..comments2024-03-27T03:23:54.906-07:00Comments on Aspiring Architect: Builder PatternPratap Reddy Pilakahttp://www.blogger.com/profile/17141976956878163883noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4208378482021219922.post-404997693086113752013-09-01T21:09:00.314-07:002013-09-01T21:09:00.314-07:00I think there should be one abstract class or inte...I think there should be one abstract class or interface as per diagram.<br />nice example to work with.mahendranoreply@blogger.comtag:blogger.com,1999:blog-4208378482021219922.post-28410870172319605972012-03-15T09:20:10.266-07:002012-03-15T09:20:10.266-07:00Gopa
Good Point. I accept with ur first point. Bu...Gopa <br />Good Point. I accept with ur first point. But i intentionally made the return type as _Builder, just to provide the chaining of methods like <br />Obj.MethodA().MethodB().MethodC();<br />instead of <br />Obj.MethodA();<br />Obj.MethodB();<br />Obj.MethodC();Pratap Reddy Pilakahttps://www.blogger.com/profile/17141976956878163883noreply@blogger.comtag:blogger.com,1999:blog-4208378482021219922.post-38277595808889466572012-03-15T06:43:46.497-07:002012-03-15T06:43:46.497-07:00Hey Pratap, Very good example! The only point wher...Hey Pratap, Very good example! The only point where I beg to differ is this:<br /> public Builder _builder;<br />I wouldn't want to expose this out, there doesn't seem to be any benefit in doing so. Having to return a _builder also wouldn't make sense for the Isxxx() functions - your thoughts? <br /><br />- GopaAnonymousnoreply@blogger.com