User Tools

Site Tools


patterns:value_object

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
patterns:value_object [2018-08-24 22:52]
77.15.198.23 [Problem]
patterns:value_object [2018-08-24 22:52] (current)
77.15.198.23 [Problem]
Line 15: Line 15:
  
 ===== Problem ===== ===== Problem =====
-j+
 In many object-oriented languages objects have referential semantics. A variable holding an object does not hold the object itself but rather a pointer, a reference, to it. Assignment copies the reference instead of the object. This behavior is desirable in many cases. You don't want to copy your controller classes when you have several variables for it. In many object-oriented languages objects have referential semantics. A variable holding an object does not hold the object itself but rather a pointer, a reference, to it. Assignment copies the reference instead of the object. This behavior is desirable in many cases. You don't want to copy your controller classes when you have several variables for it.
  
patterns/value_object.txt · Last modified: 2018-08-24 22:52 by 77.15.198.23