This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interface/Abstract class

 
Nischal Topno
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know this topic would have been posted earlier, can any one give me the URL of the discussion thread.

There are varied different opinion on difference between Interface and Abstract class that makes me confused and I can't sum up in plain sentence the difference of both. So, i am also looking on how to put in words the difference.

If anybody can refer to a good reading on the net regarding this topic it will of good help.

Nischal
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply put in one sentence.

An Abstract class can have methods with code in it, whereas an interface does not have method code, just method signatures.

Mark
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://faq.javaranch.com/button?pattern=AbstractClass&button=SEARCH
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For future reference, you may find the Search Tool helpful so you can find previous discussions on your own time, rather than waiting for us to give you the URLs.

Layne
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic