Java class, what is the best pratice for setting values in class constructor?
<p>For example I have a class</p>

<p>class1:</p>

<pre><code>public class car{
private Color carColor;
public car(Color carColor)
{
    this.carColor = carColor;
}

public void setColor(Color carColor)
{
    this.carColor = carColor;
}
}
</code></pre>

<p>class2:</p>

<pre><code>public class car{
    private Color carColor;
    public car(Color carColor)
    {
        setColor(carColor);
    }

    public void setColor(Color carColor)
    {
        this.carColor = carColor;
    }
}
</code></pre>

<p>Which Constructor would be the best practice in java coding and why?</p>
