Saturday, April 4, 2015

Abstract Classes Vs Interfaces

Abstract Classes Vs Interfaces


1.An Abstract class can have some of its members(methods) implementation but an Interface can't have its members implementation .

2.An Abstract class members can have access modifiers where as interface members can't.

3.An Abstract class can have fields where as interface can't.

4.An interface can only inherit from another interface only and can not inherit from abstract class where as an abstract class can inherit from another abstract class or interface.

No comments:

Post a Comment