Results 1 to 6 of 6
Thread: Interface In Java
- 04-05-2012, 08:25 PM #1
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
- 04-05-2012, 09:29 PM #2
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,604
- Rep Power
- 5
Re: Interface In Java
Have you read the following?
What Is an Interface? (The Java™ Tutorials > Learning the Java Language > Object-Oriented Programming Concepts)
- 04-05-2012, 09:37 PM #3
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
Re: Interface In Java
Thanks for that doWhile;
I have already checked the java docs, still confused especially
about the implementation.
Hope that you or someone else will be kind enough to explain it to me.
Regards,
Tariq
- 04-05-2012, 09:42 PM #4
Moderator
- Join Date
- Jul 2010
- Location
- California
- Posts
- 1,604
- Rep Power
- 5
Re: Interface In Java
What is confusing about it? It truly helps to know - after reading the above link - what you are confused about, at least as close as you can come to describing the confusion, otherwise we can post links ad-nauseam and end up going nowhere (and BTW, there are other links in that page that lead to more informative pages worth your time reading)
- 04-06-2012, 01:56 AM #5
Member
- Join Date
- Apr 2012
- Posts
- 13
- Rep Power
- 0
Re: Interface In Java
I just checked those links, some of the concepts are too advance for me.
The thing i am confused about is first of all why we use Interfaces at the first place?
My understanding so far is that Interface is also a prototype like a Class but with many differences.
Interface can only have method bodies and class which implements the interface will have the implementation of these methods.
Still doing some research.......................................
Am i on the right track?
Tariq
- 04-06-2012, 02:04 AM #6
Senior Member
- Join Date
- Feb 2012
- Posts
- 219
- Rep Power
- 2
Re: Interface In Java
I posted a thread a while ago about this. Got some good responses. To add to what they said, I believe it also enforces the methods on the class.
Similar Threads
-
Interface in Java
By JAVA03 in forum New To JavaReplies: 2Last Post: 03-03-2011, 07:22 AM -
Java app without interface
By fawzan in forum Advanced JavaReplies: 9Last Post: 12-29-2010, 04:07 PM -
E:\IT 215 Java Programming\GUI1.java:125: class, interface, or enum expected
By tlouvierre in forum New To JavaReplies: 1Last Post: 05-31-2009, 10:57 PM -
E:\IT 215 Java Programming\GUI1.java:125: class, interface, or enum expected
By tlouvierre in forum New To JavaReplies: 1Last Post: 05-31-2009, 02:17 PM -
E:\IT 215 Java Programming\Inventory.java:36: class, interface, or enum expected
By tlouvierre in forum Advanced JavaReplies: 16Last Post: 05-28-2009, 03:41 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks