Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
14.963 Beiträge
 
#1

Mutable Classes vs. immutable objects

  Alt 10. Jun 2019, 14:10
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...
  Mit Zitat antworten Zitat