Answered Questions

  • What is the difference between an interface and abstract class?

    In the interface all methods must be abstract; in the abstract class some methods can be concrete. In the interface no accessibility modifiers are allowed, which is ok in abstract classes.

    Naveen Kumar Shivanadri

    • Sep 8th, 2016

    The basic difference is Abstract class can contain abstract methods (a method without method body) as well as concrete methods (a method with method body). Where as in the interface there is only f...

    Ramprit Sahani

    • Sep 1st, 2016

    Interface is an abstract class which has only public abstract methods and the methods only have the declaration and not the definition. These abstract methods must be implemented in the inherited clas...