Search:

Type: Posts; User: Norm

Search: Search took 0.20 seconds.

  1. Re: static variable accessible in object b, not in object a?

    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.
  2. Re: static variable accessible in object b, not in object a?

    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:...
Results 1 to 2 of 2