Search:

Type: Posts; User: aussiemcgr

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    2,213

    Re: Using variable in different class

    Look at this line of code:

    BeginsnelheidPaneel BsP = new BeginsnelheidPaneel(null);
    public double snelheid = BsP.startsnelheid;


    When you create a BeginsnelheidPaneel object, its...
  2. Replies
    13
    Views
    2,213

    Re: Using variable in different class

    KucerakJM, actually, since startsnelheid is an int, it is automatically initialized to 0.
    This is a handy link for remembering the Primitive Default Values (scroll down to the table): Primitive Data...
Results 1 to 2 of 2