It's not a secret anymore!
The moose likes Java in General and the fly likes Interface/Abstract class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Interface/Abstract class" Watch "Interface/Abstract class" New topic

Interface/Abstract class

Nischal Topno
Ranch Hand

Joined: Nov 24, 2001
Posts: 45
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.

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
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.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: Interface/Abstract class
jQuery in Action, 3rd edition