• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

i want answer

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
what the difference between interface and abstract
 
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One - This forum ( ORM ) is not the correct one to post this question

Two - demanding answers will get you nowhere

However to get trhe ball rolling and also to induce much more knowledgable people to correct me - will give it a shot .

The simplest of reasons is related to multiple inheritance
( and I am sure you are looking for more than this )

Another difference I can think of is if you have some default generic behaviour to implement - go for an abstract class - since interface will not allow implementations

One more - ( this is my understanding ) - if the system changes a lot I think its better to have an abstract class as supertype where - you can add a "new" method with some default implementation .

If this were to be an interface - it would be a maintenance nightmare to add a new method .

Thanks ,
~satish
[ July 28, 2008: Message edited by: satish bodas ]
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please try to CarefullyChooseOneForum before posting. And please UseAMeaningfulSubjectLine. You could also probably benefit from learning to SearchFirst.

I'm going to move this to a more appropriate place.
 
Ranch Hand
Posts: 630
Android Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Read same question ask on javaranch.
 
Being a smart alec beats the alternative. This tiny ad knows what I'm talking about:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic