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

Last updated:9/19/2020 1:10:26 AM

1 Answers

Anonymous User
Anonymous User

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.