Differences between Abstract class and interfaces

 Abstract classes:

      In Abstract class have at least one abstract method and others can non-abstract methods.

      Abstract methods can be public, private or protected.

      We need to redefine the abstract method to implement the method in sub class. we cannot redefine static methods.

      * Multiple inheritance is not possible.


Interface:

    * All methods are abstract methods in interfaces.

    * All methods are public.

    * No need to redefine method. we can write the code by clicking on source code button.

    * Multiple inheritance is possible.


************************Thank you ************************

Comments

Popular posts from this blog

New syntax for append- VALUE (new syntax 7.4+) in ABAP

Read statement new syntax in ABAP. (7.4+).

Add custom tab to me51n at item level in ABAP