I met such a construction in the training example.
public class Vehicle { private String color; //Constructor Vehicle(String c) { this.setColor(c); } // Setter public void setColor(String c) { this.color = c; } } As far as I understand, the setter is used to set the value of a private variable, which the designer is also capable of. Why use a constructor that uses a setter that assigns a value to a variable if you can get away with the constructor? There are cases when it is necessary, or is it just a theoretical example that this is possible?