This statement:
b.x = 2;
Is executed AFTER this one:
a.x = 1;
The variable: x will have the value from the last assignment statement.
Type: Posts; User: Norm
This statement:
b.x = 2;
Is executed AFTER this one:
a.x = 1;
The variable: x will have the value from the last assignment statement.
private variables are inaccessible. static has nothing to do with being accessible.
There is only one x variable. It will have the last value assigned to it.
See:...