File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1428
Difference between abstract class and interface?
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
I found 117 responses to this question in this forum. When I get a few minutes, I should add it to the FAQ for this forum.
[ August 03, 2004: Message edited by: Marilyn de Queiroz ]

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Sadanand Murthy
Ranch Hand

Joined: Nov 26, 2003
Posts: 382
Originally posted by kri shan:
Difference between abstract class and interface?

Are this class quiz/test questions? Have you tried the search function on this forum?

Ever Existing, Ever Conscious, Ever-new Bliss
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
I'm thinking that Marilyn's link isn't pointing where she'd hoped.

Note that the search page link is at the top right of this page.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Jack Kay
Ranch Hand

Joined: Aug 01, 2004
Posts: 62
Remember rule #1 Dirk, be nice! lol j/k j/k
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
Originally posted by kri shan:
Difference between abstract class and interface?

A single line answer to a question "What is an interface?" would interface defines a set of requirements to which every implementing class should comply. Whereas, Abstract classes factor out common functionalities that are going to be shared by all of its subclasses, but doesn't know the concrete implementations of those functionalities. This will have to be supplied by the extending superclasses. This was just to give you a basic idea of what you mean by Abstract classes and interfaces.

You should definitely do some home work on this.This is where you can start.

Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
I agree. Here's the link:
subject: abstract class Vs interface
It's not a secret anymore!