If you want to create a instance with the value of int parameter other than 0, you can use constructor . if you are using setters, they are actualy methods, so if you have more than one setters then it is better to use constructor.24 Nis 2017
Read moreDo you need getters and setters if you have a constructor?
In simple terms: Use constructor if you think initialization is mandatory before you can use the object . Use setter method when initialization of variable is non-mandatory to use the object.
Read more