When would you use an Abstract class? Why we can use inteface instead of abstract class?

hai all,

What is the situation for use an  Abstract class?


See All Responses Below...
Message Rating
Posted on: 14/11/2012
If we have some common routines that already planned and is not changing throughout software life cycle, then implement an abstract class with these methods in the abstrct class. If no common methods with default behavior, then design it as  interfaces.

The idea behind abstract class or interface is that, it will force the developer to implement certain methods in the interfaces or abstract class , which makes the life of project manager and architect simple..
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site.