This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Similar Threads
Tech Word Game
ABSTRACT
WA #1.....word association
difference between BufferedInputStream(or output) and other i/ostreams,regarding buffers.
Reg. native methods