Wednesday, January 5, 2011

When to use an abstract class or interface

* If you are to provide a common functionality to unrelated class then use an interface
* If you plan on updating the base class throughout the life of the program its best to keep the class as abstract.
*if you are providing any default functionality then abstract class can be used.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.