In Beta

Difference Between Abstract Class and Interface in MVC .NET with Example


Hello Friends,


Today, I am going to discuss about an abstract class and an interface.


What are the difference between Abstract class and Interface?


  1. An Abstract is a class but an Interface is not a class. It is an entity. Both abstract class and interface cannot be instantiated (i.e. we cannot create an object of both abstract class and interface).
  2. An Abstract class is defined by “abstract” keyword and Interface is defined by “interface” keyword.
  3. An Abstract class can have the const, members/fields, both declaration and definition of properties, and methods, whereas Interface can have only const, declaration of properties and methods. An Interface cannot have fields.


Read the full article here>> Difference Between Abstract Class and Interface in MVC .NET with Example