Abstract Classes vs Interfaces

By | January 25, 2018

​Both of them are incomplete you can not create an instance

Basic Differences

​Can have implementations for some of its members(methods) ​Can not have implementation for any its members
​Can have fields ​Can not have fields
​Member is private by default and can have access modifiers ​Members are public by default but they can not have access modifier
​Can inherit from another abstract class or another interface, ​Can inherit from another interface only and can not inherit from an abstract class
​Can not inherit from multiple classes all the same time ​Can inherit from multiple interfaces at the same time
​Can have access modifiers ​Can not have access modifiers

One thought on “Abstract Classes vs Interfaces

Leave a Reply

Your email address will not be published. Required fields are marked *