Interviews - C# Corner

Sahil Bansal
What is the difference between an Interface and an Abstract Class in C#?
By Sahil Bansal in C# onAug 21 2012
  • Sandeep Neela
    Feb, 2016 26

    Hi Sahil,Interface 1. There are only abstract methods in interface. 2. Methods can only be declared and cannot be implemented in interface 3. Cannot create variables 4. The class that extends interface will implement the methods 5. It allows you to have multiple inheritance 6. Cannot use access specifiersAbstract Class 1. Can have both concrete and abstract methods 2. Can create variables 3. Can declare and implement methods 4. Doesn't allow multiple inheritance 5. Can use access specifiersThanks, Sandeep

    • 0

Most Popular Companies

Most Popular Job Functions

MOST LIKED QUESTIONS