Results 1 to 3 of 3
  1. #1
    vaibhavspawar is offline Member
    Join Date
    Jun 2010
    Posts
    17
    Rep Power
    0

    Default About Interfaces in java

    Hello All,
    I have an interface (say) 'Inter' with a method (say) 'void display()' in it. I have implemented that method in some class (say) 'InterImpl' in which I've implementation of display() to print something like "Hello";
    Suppose I give call ti interface method, will it implicitly call 'display()' of class 'InterImpl'?
    Please help.
    Thanks. :)

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,807
    Rep Power
    10

    Default

    You cannot call the method in the Interface so which method do you think gets called.

  3. #3
    goldest's Avatar
    goldest is offline Senior Member
    Join Date
    Oct 2009
    Location
    Pune, India
    Posts
    469
    Rep Power
    8

    Cool

    Suggested reading : Interfaces

    Goldest
    Java Is A Funny Language... Really!
    Click on * and add to member reputation, if you find their advices/solutions effective.

Similar Threads

  1. Vlc player interfaces in java
    By sankar1227 in forum Networking
    Replies: 1
    Last Post: 08-06-2011, 08:39 PM
  2. User Interfaces and Java... any component/framework?
    By Darkness in forum New To Java
    Replies: 4
    Last Post: 11-25-2010, 05:28 PM
  3. Interfaces
    By justin1980 in forum New To Java
    Replies: 9
    Last Post: 02-10-2010, 01:04 PM
  4. [SOLVED] Interfaces in Java
    By MuslimCoder in forum New To Java
    Replies: 3
    Last Post: 03-08-2009, 02:12 PM
  5. Interfaces
    By imran_khan in forum New To Java
    Replies: 5
    Last Post: 07-30-2007, 08:11 AM

Posting Permissions

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