|
|
Illustration of variables of value types | This page illustrates assignment on value types, in the same way as done
for reference types on an earlier page. |
Assume that the type Point is a value type |
Variables of value types. The situation before the assignment p1 = p2. |
| The variables p1 and p2 refer to two points. p1 is assigned to p2. |
Variables of value types. The situation after the assignment p1 = p2. |