How do you know that where to use abstract class or interface?

Questions by dineshsingh   answers by dineshsingh

Showing Answers 1 - 2 of 2 Answers

M.Nagaraja

  • Aug 1st, 2006
 

If we want to implement  all the methods in a child class then w e will go for Interface and if we want to implement a few methods , if we want to use a few methods of its super class we go for Abstract class.

  Was this answer useful?  Yes

deny eldo

  • Aug 24th, 2006
 

Basically it depends upon your convinence but what I have known

when we consider version control, where a modification of many component depends upon many classes which are repetadly used in multiple components like ejb we prefer using abstract classes

but when we consider components which have no relations or distant we use interfaces. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions