Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    5,778

    Re: Two class program help

    You're trying to do the same thing with the brake method as you originally had with your acceleration method. You need to be updating speed, not the variable brake.

    Just copy/paste the...
  2. Replies
    4
    Views
    5,778

    Re: Two class program help

    You're accelerate method is broken.

    Instead of re-assigning the acceleration with acceleration + 5, you should be increasing the speed by 5.

    something like this:


    public void accelerate()...
Results 1 to 2 of 2