A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
abstract class and interface
Joined: Oct 10, 2002
Oct 10, 2002 23:12:00
can any tell me,
when to use abstract classs and interfaces.
Joined: Oct 16, 2000
Oct 11, 2002 12:09:00
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:
subject: abstract class and interface
about abstract class
abstract vs interface
difference between interface and abstract classes
internal difference between abstract class and interface.
Only one question in interface and abstract class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015