top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

In which scenario we can use abstract class and in which we can use interface?

0 votes
266 views
In which scenario we can use abstract class and in which we can use interface?
posted Apr 24, 2017 by Sunil

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

If you know partial requirements like I have a Circle and Circle is abstracted from Shape, then you should go with abstract class. But if you dont know anything about the requirements implementation and its dependency then you should use interface in that case.

answer May 3, 2017 by Shweta Singh
Similar Questions
+2 votes

Hai, Friends anybody say the difference between Abstract and Interface

+4 votes

Why can’t we use a static class instead of singleton?

...