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

Popular posts from this blog

Examine the collapse of Han. What factors explain how this occurred? How influential in Han Dynasty on Chinese History?

JAD Advantages and Disadvantages

Summarize effective communication strategies in organizational hierarchies, and review the role and relevance of the organizational grapevine