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

2015/12/26

Exercise 6.9 Greenfoot Textbook

JaneSmith JaneSmith

2015/12/26

#
"Place an object of class Body into the world. Which of the methods inherited from SmoothMover can you call interactively (through the objects' menu)? Which can you not call at this stage?" I know that the methods that are inherited from SmoothMover are the following: accelerate() addForce() getExactX() getExactY() getMovement() getSpeed() move() setLocation() setLocation(new set of parameters) Each time I call (right click on the object and then the drop down menu appears for the object and I click/call a method) one of the methods listed above I am not sure which is or is not "called" interactively. I guess I am not sure how the term interactively is used in this situation.
davmac davmac

2015/12/26

#
You should read that as "which of the methods ... can you call interactively, that is, through the object's menu?". Calling a method interactively is what you are doing when you click on a method in the menu. (In distinction, calling a method programmatically is when you write code to call the method).
You need to login to post a reply.