• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

abstract class vs interface

 
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://mindprod.com/jgloss/interfacevsabstract.html

Here the above link give difference between abstract class and interface
Here there is one heading

Third Party convenience

Interface
An interface implementation may be
added to any existing third party
class

Abstract class
A third party class may be
rewritten to extend only
from the abstract class.

Why Third party class need to be rewritten in case of abstract class?
[ April 23, 2007: Message edited by: Gaurav Gambhir ]
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Gaurav,

Why Third party class need to be rewritten in case of abstract class?




Because if the Third party class is extending from another class you have to remove that extend first, perhaps, you have to remove code that depends of that extend, so, you could put the new extend to the abstract class in your Third party class.


"Doubt is the vestibule which we all must pass through before we can enter the temple of truth. " Osho

Victor Velazquez
Mexico
 
Gaurav Gambhir
Ranch Hand
Posts: 256
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks alot Victor
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic