Answer:
Following are the code in java language
abstract interface PointingDevice // interface PointingDevice,
{
// abstract method getXCoord()
public abstract int getXCoord();
// abstract method getYCoord()
public abstract int getYCoord();
// abstract method attentionRequired()
public abstract boolean attentionRequired();
// abstract method setResolution( )
public abstract double setResolution(double a);
}
Explanation:
In this code we have declared a abstract interface "PointingDevice" which contains the four abstract method getXCoord of type int , getYCoord() of type int , attentionRequired() of type boolean and setResolution() of type double .
These method have only declaration not definition any interface or class which inherit the inteface PointingDevice must define all these four method otherwise it also be abstract .
The cats and dogs at a local shelter. Because there is so many in shelters
Answer:
public Balloon(){
//Invokes the 2 argument constructor for balloon with relevant
//parameters
this(10,new Color(135,206,250));
}
Explanation:
class Balloon{
//Private fields in the Balloon class
private double radius = 0;
private Color c = null;
// Constructor with two arguments - radius and Color
public Balloon(double radius,Color c){
this.radius = radius;
this.c = c;
}
// No argument constructor
public Balloon(){
//Invokes the 2 argument constructor for balloon with relevant
//parameters
this(10,new Color(135,206,250));
}
}
Answer:
see picture. let me know if you have questions.