top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

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

0 votes
45 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?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...