wood burning stoves 2.0*
The moose likes JSP 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 » JSP
Bookmark "abstract class and interface" Watch "abstract class and interface" New topic
Author

abstract class and interface

parag chaudhari
Greenhorn

Joined: Oct 10, 2002
Posts: 1
hi all,
can any tell me,
when to use abstract classs and interfaces.
thanks.
parag
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
You would use an abstract class when you have common methods that any subclass needs to have.
You use interfaces when you do not want the class to do anything, but tell all other classes the methods that they must have in order to be instatiated.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract class and interface