Difference between Abstract class and Interface

Abstract class Interface
Can have access modifiers for its member Can’t not have access modifier….by default everything in public
A class can only inherit one abstract class A class can implement multiple interfaces
It can have abstract as well as non abstract methods It can only have signature of the method
Abstract class member can be defined using the keyword static, virtual, abstract or sealed An Interface member cannot be defined using the keyword static, virtual, abstract or sealed
We can declare a member field in an abstract class We cannot declare a member field in an Interface
It can have constructor declaration. It cannot have constructor declaration

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s