Oops interface vs abstract class
Interface | Abstract class |
Interface support multipleinheritance | Abstract class does not support multiple inheritance |
Interface does'n Contains Data Member | Abstract class contains Data Member |
Interface does'n contains Cunstructors | Abstract class contains Cunstructors |
An interface Contains only incomplete member (signature of member) | An abstract class Contains both incomplete (abstract) and complete member |
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 |
Member of interface can not be Static | Only Complete Member of abstract class can be Static |
No comments:
Post a Comment