aspose file tools
The moose likes Beginning Java and the fly likes Abstract Class vs Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Abstract Class vs Interface" Watch "Abstract Class vs Interface" New topic

Abstract Class vs Interface

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
What's the main difference between an abstract class and an interface?
Thanx in advance,
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14663

Visu, that is one of the most frequently asked questions on the forums here. If you do a search, you find about 200 topics with exactly the same question:

interface vs abstract
Abstract classes and Interfaces
What's the difference between Interface and Abstract class?
when to use abstract class and interface
diff b/w abstract classes and Interfaces
abstract and Interface
Abstract and Interface
what is diff betwn Interface and Abstract class

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
And if you follow the link to the FAQ in Jesper's sig, you will also find an entry on exactly this topic.

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
Don't get me started about those stupid light bulbs.
subject: Abstract Class vs Interface