Write an interface, PointingDevice, containing: an abstract method, getXCoord that returns an int an abstract method, getYCoord that returns an int an abstract method, attentionRequired that returns a boolean an abstract method, setResolution that accepts a double and returns a double

LANGUAGE: JAVA

CHALLENGE:

Write an interface, PointingDevice, containing:
an abstract method, getXCoord that returns an int
an abstract method, getYCoord that returns an int
an abstract method, attentionRequired that returns a boolean
an abstract method, setResolution that accepts a double and returns a double

SOLUTION:

The Bad News: The content you are trying to access is only available to members.

The Good News: You too can be a member, simply Click Here.

Already a member?

Posted in ,

1 Comment

  1. Matt on March 25, 2017 at 5:43 pm

    Funny enough your solution works but this is a simpler way to meet the intent.

    interface PointingDevice{
    abstract int getXCoord();
    abstract int getYCoord();
    abstract boolean attentionRequired();
    abstract double setResolution(double a);
    }

Leave a Comment

You must be logged in to post a comment.