This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Interface/Abstract class" Watch "Interface/Abstract class" New topic
Author

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.

Nischal
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
http://faq.javaranch.com/button?pattern=AbstractClass&button=SEARCH


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.

Layne


Java API Documentation
The Java Tutorial
 
 
subject: Interface/Abstract class
 
Similar Threads
abstract class Vs interface
difference between abstract class and interface
internal difference between abstract class and interface.
Difference between Interface and Abstract class
Diff bw Abstract class and Interface