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

What is JAD and how are users involved? What are advantages and disadvantages of JAD?

Describe at least three of the general information skills essential for all business careers.

Why do firms need to invest in net working capital?