Define an interface class that contains two int constants, X = 5 and Y = 10 and one int method called useXY which receives no parameters. Call your interface class XYClass
Define an interface class that contains two int constants, X = 5 and Y = 10 and one int method called useXY which receives no parameters. Call your interface class XYClass
Answer:public interface XYClass
{
public final int X = 5;
public final int Y = 10;
public int useXY( );
}
Comments
Post a Comment