Crowdify FB GroupsGeneral Group
Online Tools Group
Crowdify TV Group
Become a Premium or Founding Member
Difference Between Abstract Class and Interface in MVC .NET with Example
Today, I am going to discuss about an abstract class and an interface.
What are the difference between Abstract class and Interface?
- 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).
- An Abstract class is defined by “abstract” keyword and Interface is defined by “interface” keyword.
- 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