Talk:Builder pattern: Difference between revisions

Content deleted Content added
Most of this page is copied: additional concern about use of copyrighted material
No edit summary
Line 151:
 
I'm not sure we need two example implementations. C++ and Java are not radically different in syntax, and there's nothing about the pattern that can't be covered in one. &mdash;&nbsp;[[User:Anndelion|<font color="#6B8E23">'''anndelion'''</font>]]&nbsp;[[User_talk:Anndelion|<span style="font-size:125%; vertical-align:text-middle; color:#DAA520"><span class="Unicode">&#10059;</span></span>]] 21:40, 18 April 2011 (UTC)
 
== C# implementation ==
In keeping with C# style, shouldn't properties be used instead of java-like setters?
<source lang = "csharp">
public string Dough {
get {return _dough;}
set {
(do class specific checking...)
_dough = value;
}
}
...
</source>