aspose file tools*
The moose likes Java in General and the fly likes Abstract class and interface... Superclass Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Abstract class and interface... Superclass" Watch "Abstract class and interface... Superclass" New topic

Abstract class and interface... Superclass

Larry Lai
Ranch Hand

Joined: May 13, 2002
Posts: 44
Hi everyone,

I've a homework execrise about that...

1. In what situation would we use an abstract class instead of an interface?

2. In what situation would we use an interface instead of an inheriting from a superclass?

3. When is it better to use an interface rather than an abstract class?

How to think that three kinds of keywords?
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Homework Help No, Java Tutorial Yes

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
subject: Abstract class and interface... Superclass
Similar Threads
Interface vs abstract class
how every methods in interfaces are public abstract by default
forcing implementing methods
Where to use abstract class and Interface?
abstract class