It is possible to have the convenience of using mutable classes to construct objects gradually, setting properties and execution options beyond the use of constructors, but with the advantage of getting immutable instances at the end of the process. And I'm not talking about the Builder pattern. Incidentally you should not need to construct a class to create an instance of another class...
Weiterlesen...