I have a question about designers. I think that all constructors are just our convenience instead of setter methods, right? Thus, for an object, properties that you consider important (for example, required fields in a web form) are passed as parameters to the constructor.
Is there any criterion for these numerous numbers of parameters to be passed to the constructor? Please clarify these points, as well as any questions about the designers.
Edit : sorry for the way I asked the question. Yes, we create an object with a constructor, and we assign values with setters, but my question is about comparing the default constructor with setters and the constructor with explicit parametrs.
source
share