Following are the differences between an Interface and a Abstract Class.
Interface | Abstract Class | |
---|---|---|
1 | Interface support multiple Inheritance | Abstract class does not support multiple inheritance |
2 | Interface doesn't contain Data Member | Abstract class contains Data Memember |
3 | Interface doesn't contain Constructor | Abstract class contains constructor |
4 | An interface contain only incomplete member (signature of member) | An Abstract class contain both Incomplete (Abstract) and Complete Members |
5 | An Interface cannot have access modifiers by default everything is assumed as public | An Abstract class can contain access modifiers for the subs functions properties |
6 | Member of Interface can not be static | Only Complete Member of Abstact class can be static |
I hope it was informative for you and I would like to Thank you for reading.
No comments:
Post a Comment