Difference between abstract class and interface in C#

                                             Difference between abstract class and interface in C#


An abstract class is a half-defined base class and the interface is the contract between 2 parties(caller and callee). abstract is used to share something common in parent-child relations.

Abstract Class 

  • it is half defined base class
  • we can not create an instance to the abstract class
  • we are using abstract keyword


    Interface  Uses

    • It is a contract between caller and callee(2 parties)
    • we are not using abstract keyword


    Previous Post Next Post