This site requires JavaScript, please enable it in your browser!
Greenfoot back
jogit666
jogit666 wrote ...

2014/9/12

Strange... (code below)

jogit666 jogit666

2014/9/12

#
public class RandomMover extends AugmentedRobot
{
    public RandomMover()
    {
        RandomMover(0);
    }
    public RandomMover(int additionalRobots)
    {
        super();
    }
}
Throws "cannot find symbol - method RandomMover(int)" (line 05 for you). Why would that be?
Super_Hippo Super_Hippo

2014/9/12

#
Line 7 is another constructor, not a 'normal' method. To access it, use the following instead of line 5:
this(0);
jogit666 jogit666

2014/9/15

#
Thanks!
You need to login to post a reply.