Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    6
    Rep Power
    0

    Default Inerface constructor

    Is it possible to create a constructor in interface ? If it is possible, then how ? Please explain step by step.

  2. #2
    eRaaaa is offline Senior Member
    Join Date
    Oct 2010
    Location
    Germany
    Posts
    787
    Rep Power
    5

    Default Re: Inerface constructor

    No, because you cannot instantiate a interface, only from a class which implements this interface.

  3. #3
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default Re: Inerface constructor

    Do you have a specific problem motivating the question?

Similar Threads

  1. No-arg constructor??
    By collwill in forum New To Java
    Replies: 6
    Last Post: 03-09-2011, 02:50 AM
  2. Constructor
    By arefeh in forum New To Java
    Replies: 9
    Last Post: 01-11-2010, 11:38 AM
  3. Replies: 0
    Last Post: 12-19-2007, 09:10 AM
  4. Replies: 0
    Last Post: 12-19-2007, 09:01 AM
  5. Constructor Help
    By bluegreen7hi in forum New To Java
    Replies: 2
    Last Post: 11-15-2007, 05:44 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
  •