|
java
|
|
|
|
|
Bookmarks
|
|
|
|
|
|
|
JavaRanch FAQ : Interface Vs Abstract Class
|
|
|
|
* use an abstract class, if you want to provide common implementation to subclasses,
* use an abstract class, if you want to declare non-public members,
* use an abstract class, if you want to be free to add new public methods in the future,
* use an interface if you're sure the API is stable for the long run
* use an interface if you want to provide the implementing classes the opportunity to inherit from other sources at the same time.
http://faq.javaranch.com/java/InterfaceVsAbstractC
saved under Interview Questions/Abstract vs Interface
by
java
|
|
|