aspose file tools*
The moose likes Java in General and the fly likes Abstract class and interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Abstract class and interface" Watch "Abstract class and interface" New topic
Author

Abstract class and interface

Nimish Patel
Ranch Hand

Joined: Jun 29, 2005
Posts: 84
Hi,

Have a nice day...
I understand abstract class and intreface, but
when should use interface and when should use abstract class ?
what is better from both ?


rgds,
Nimish Patel
[ September 16, 2005: Message edited by: Nimish Patel ]
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

when should use interface and when should use abstract class ?
what is better from both ?


http://faq.javaranch.com/view?SearchFirst

Creating Interfaces
Program to an interface, not an implementation
Java Glossary : interface vs abstract class
Abstract classes vs. interfaces: When does it make sense to choose an abstract class over an interface?
Abstract classes and interfaces practicum: Move from theory to practice on when to employ abstract classes vs. interfaces
Tech Tips: ABSTRACT CLASSES VS. INTERFACES
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Abstract class and interface