- An Abstract class doesnot provide full abstraction but an interface provides full
abstraction. We can declare and define methods in an abstract class but only declare
in an
interface.
- Abstract class does not allow multiple interitance while an interface allows multiple inheritance.
- Interface does not allow to declare member field.
- In Interface the default access modifier is public. Private, protected, internal access modifer are not allowed.
- Keywords static, virtual, abstract or sealed are not allowed in an interface.
interface.
- Abstract class does not allow multiple interitance while an interface allows multiple inheritance.
- Interface does not allow to declare member field.
- In Interface the default access modifier is public. Private, protected, internal access modifer are not allowed.
- Keywords static, virtual, abstract or sealed are not allowed in an interface.
No comments:
Post a Comment