Results 1 to 2 of 2
Thread: Interface and implementations
- 11-14-2012, 12:47 PM #1
Member
- Join Date
- Nov 2012
- Posts
- 69
- Rep Power
- 0
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?
- 11-14-2012, 02:04 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
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.
Similar Threads
-
Interface Inheritance : create class that implements the interface
By Zulkifli_Rahman in forum New To JavaReplies: 1Last Post: 07-08-2012, 05:23 PM -
Digital certificates - concepts and implementations
By RodrigoMendes in forum New To JavaReplies: 0Last Post: 08-02-2011, 03:12 PM -
Loading service implementations with ServiceLoader from external JARs
By Sethiel in forum Advanced JavaReplies: 0Last Post: 11-03-2010, 02:16 PM -
Implementations of an ArrayStack class
By coyler_21 in forum NetBeansReplies: 5Last Post: 10-27-2010, 09:04 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks