|
|
Illustration of variables of reference types | On this page we explain what happens in the assignment p1 = p2, where
both p1 and p2 are variables of compatible reference types.
See the similar example for value types on a later page. |
Variables of reference types. The situation before the assignment p1 = p2. |
| The variables p1 and p2 refer to two points. p1 is assigned to p2. |
Variables of reference types. The situation after the assignment p1 = p2. |