Results 1 to 2 of 2
  1. #1
    heatblazer is offline Senior Member
    Join Date
    Nov 2012
    Posts
    137
    Rep Power
    0

    Question Interface and implementations

    Hello, I am quite new to Java and I`ve encountered "interface"/"implements". I can`t seem to understand the idea in these, it`s like adding a modules to a device implementing many interfaces with their modules. I think you can do the same with static methods and abstract classes or it`s different approach? Is it often to see using interfaces and implementing them into a class? Since you can add many, what is the approach - separate them in different java files or just stick in the same file?

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default Re: Interface and implementations

    Look at the Collections framework for an example of interfaces in action.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 1
    Last Post: 07-08-2012, 05:23 PM
  2. Digital certificates - concepts and implementations
    By RodrigoMendes in forum New To Java
    Replies: 0
    Last Post: 08-02-2011, 03:12 PM
  3. Replies: 0
    Last Post: 11-03-2010, 02:16 PM
  4. Implementations of an ArrayStack class
    By coyler_21 in forum NetBeans
    Replies: 5
    Last Post: 10-27-2010, 09:04 AM

Tags for this Thread

Posting Permissions

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