1.

What Is The Difference Between An Interface And An Abstract Class?

Answer»

Both are looks similar. But, the basic difference is ABSTRACT class can contain abstract and non abstract methods, where interface only contains abstract METHOD (without method body). You can DECLARE fields that are not static and final, and define PUBLIC, protected, and private CONCRETE methods in abstract class. But, in Interface all members are public, static and final , all methods are public.

Both are looks similar. But, the basic difference is abstract class can contain abstract and non abstract methods, where interface only contains abstract method (without method body). You can declare fields that are not static and final, and define public, protected, and private concrete methods in abstract class. But, in Interface all members are public, static and final , all methods are public.



Discussion

No Comment Found