0

Every method present inside interface is abstract but in abstract class also we can take only abstract methods then what is the need of interface concept?

10
  • Not all methods need to be abstract in an abstract class. Commented Apr 12, 2018 at 9:46
  • Why we took abstract methods in interface Commented Apr 12, 2018 at 9:48
  • I don't know what you're saying, but the duplicate explains everything. Commented Apr 12, 2018 at 9:49
  • 1
    @Kayaman IMHO this question is not a duplicate. I think the OP wonders why do we need the concept of interface if we can create an abstract class having all its methods abstract. You can find everything in the duplicate but you have to look carefully and it is not obvious as a beginner. Commented Apr 12, 2018 at 9:57
  • 1
    Should be said in those linked question but the short answer, you can implement more than one interface but only extends one abstract class. Commented Apr 12, 2018 at 12:13

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.