link mingle home | logged in as: guest | login/register| submit link


IndiaDiscuss.com : Social Bookmarkings and News Networking Site for India
java
Bookmarks
JavaRanch FAQ : Interface Vs Abstract Class

View Story
4
Votes

* 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

 
IndiaDiscuss | Published News | Hot
Indian Social News and Links Network
IndiaDiscuss | Published News
Indian Social News and Links Network