click below
click below
Normal Size Small Size show me how
Signature or call
Choose whether the code is a method signature or a method call
| Question | Answer |
|---|---|
| public void act() | signature |
| act(); | call |
| public int getX() | signature |
| getX(); | call |
| public int getY() | signature |
| getY(); | call |
| public int getRotation() | signature |
| getRotation(); | call |
| public void setRotation(int rotation) | signature |
| setRotation(60); | call |
| public void setLocation(int x, int y) | signature |
| setLocation(100, 50); | call |
| public void move(int distance) | signature |
| move(10); | call |
| public void turn(int amount) | signature |
| turn(180); | call |
| public World getWorld() | signature |
| getWorld(); | call |
| addedToWorld(CrabWorld); | call |
| public GreenfootImage getImage() | signature |
| getImage(); | call |
| setImage("crab.png"); | call |
| protected boolean intersects(Actor other) | signature |
| getNeighbours(50,true,Worm.class); | call |