Home TechnologyProgramming Subscribe to RSS

How Can You Create Your Own Interface?

Answer Question

1 Answer - Sort by: Date | Rating

    Definitely we can create our own interface :

    syntax
    interface interfacename
    {
          method definitons only
    }

    We can't create instances for interfaces we can implement them in any class. Java does not support multiple interface this can be achieve by using interfaces
    A class can extends only one class but we can implemnet any numberof interfaces but we define all the menthod in an interface in a class the implement the interface
    0 0

    Vvr_ram 

    answered 3 years ago

      More

      More

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International