David Ferguson [mailto:[EMAIL PROTECTED]] wrote:
> Which style of defaulting do you prefer?
I prefer the B approach over the A approach. However, I think the first
constructor should call the second instead of the third directly, this way
you manage the default age in one place instead of two:
<codeSnippet language="C#">
PersonB(string first) : this(first, "Smith") {}
</codeSnippet>
My 2�,
Drew
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.