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

2011/11/18

I am lost I am supposed to Write an interface named 'Test' with the following behavior:

2woodsway 2woodsway

2011/11/18

#
a method 'getDuration' that returns a 'Duration' object. a method 'check' that accepts an integer parameter and returns a 'Result' object. a method 'getScore' that returns a double. I did the following and was wrong: public interface PointingDevice { int getXCoord(); int getYCoord(); boolean attentionRequired(); double setResolution(double x); }
mjrb4 mjrb4

2011/11/18

#
Well: - The interface isn't called Test, it's called PointingDevice - It doesn't have a getDuration() method - It doesn't have a check() method - It doesn't have a getScore() method ...I'm not sure there's a lot to go on to help you there!
You need to login to post a reply.