Results 1 to 3 of 3

Thread: Why do you create interfaces ?

  1. #1

    Default Why do you create interfaces ?

    You would create interfaces when you have two or more functionalities talking to each other. Doing it this
    way help you in creating a protocol between the parties involved.

  2. #2



    Interfaces are mainly used for two purposes
    first is that it removes the prob of multiple inheritence in classes.such as subclass cannot inherit the properties of two superclasses bt this can be possible by using interfaces.
    secondly we use interface as a common class for all other classes.

    Thanks & Regards,
    Smith Brown

  3. #3
    New Member palomaipami's Avatar
    Join Date
    Dec 2011


    In the Java programming language, an interface is a reference type, similar to a class, that can contain only constants, method signatures, and nested types. There are no method bodies. Interfaces cannot be instantiated—they can only be implemented by classes or extended by other interfaces.

Similar Threads

  1. Interfaces in java
    By puneet167 in forum Java
    Replies: 5
    Last Post: 31-07-14, 01:58 PM
  2. create virus???
    By pratikg88 in forum Programming
    Replies: 6
    Last Post: 05-11-09, 06:14 PM
  3. Facebook Virus(You Can Create Too)
    By shyco in forum Programming
    Replies: 10
    Last Post: 04-11-09, 06:43 PM
  4. Turkmenistan to create desert sea
    By NewsPoster in forum News
    Replies: 0
    Last Post: 17-07-09, 04:58 AM
  5. World Record - you wish to create before you die ?
    By michaeldadona in forum Your Voice / Community Center
    Replies: 9
    Last Post: 30-05-09, 08:48 PM

Share this page with your friends

Share this page with your friends

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts