How to use Interface class with Java a Simple Example