The Artima Developer Community
Sponsored Link

Java Answers Forum
Java Interface Help

1 reply on 1 page. Most recent reply: Apr 9, 2003 7:39 AM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
rassuls

Posts: 10
Nickname: rassuls
Registered: Mar, 2003

Java Interface Help Posted: Mar 26, 2003 9:50 PM
Reply to this message Reply
Advertisement
Java lets you inherit only from one class in oppose to C++, but instead you can implement more than one interface. What benefit do I get using multiple interfaces when I have to implement every method in the interface while in C++ I can inherit from more than one concrete class. I guess I am trying to understand the java interface and its benefits. Do you have any good examples showing the benefit of using interfaces. Any help is appreciated. Thank you


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Java Interface Help Posted: Apr 9, 2003 7:39 AM
Reply to this message Reply
Why don't you read the article in artima...

http://www.artima.com/javaseminars/modules/PolymorphInt/index.html

Flat View: This topic has 1 reply on 1 page
Topic: Prime Number Sources/Example Request Previous Topic   Next Topic Topic: Connection reset by peer: JVM_recv in socket input stream read

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use