Search:

Type: Posts; User: pbrockway2

Search: Search took 4.37 seconds.

  1. Replies
    7
    Views
    2,712

    Re: Drawing to a JFrame From Other Classes

    In my opinion, yes. Nonprimitive variables (and other expressions) point to things. You can give a method a copy of their value, and that method can then change the state of the thing pointed to,...
  2. Replies
    7
    Views
    2,712

    Re: Drawing to a JFrame From Other Classes

    Java passes everything by value. (And returns things that way. And assigns things that way.)

    In the expression "gameObject.draw(g);" what gets passed is the value of the variable g not a...
Results 1 to 2 of 2