Interface vs Abstract class in C#

What is Interface?

An interface is a contract with the list of the method defined in the interface.An interface can only have the method definition.Any class implementing the interface should implement all the methods defined in the interface.

What is Abstract Class?

An abstract class is a special kind of class which can not be instantiated, the main purpose of  abstract class is to define the contract for all subclasses,

The difference between Interface and Abstract class?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s