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 moreWhat is getter and setter in constructor?
The constructors are used to initialize the instance variable of a class or, create objects. The setter/getter methods are used to assign/change and retrieve values of the instance variables of a class.10 Eyl 2019
Read more