In what scenarios will you use a abstract class and in what scenarios will you use a interface?

Total Post:2

Points:10

C#  OOPS 
C#
 481  View(s)
Ratings:
Rate this:
  1. In what scenarios will you use a abstract class and in what scenarios will you use a interface?

    This question is very common in Interviews.If we want to increase reusability of code in inheritance then abstract classes are good. If we want implement or force some methods across classes must be for uniformity you can use a interface. So to increase reusability via inheritance use abstract class as it is nothing but a base class and to force methods use interfaces.

Answer