Quantcast
Channel: SCN : Blog List - ABAP Development
Viewing all articles
Browse latest Browse all 943

Conceptual differences between OO ABAP and JAVA

$
0
0

I have been associated with JAVA and ABAP worlds from the start. Object Orientation in programming has gained more and more importance. OO ABAP and JAVA are object oriented programming styles. ABAP/4 was extended to support OO concepts. Object oriented concepts of Java, C++, etc... are adopted in OO ABAP and some features which are specific to ABAP; it  means there are some features in ABAP which are not supported in JAVA and vice versa. One more important aspect to consider is ABAP language is meant for business software development.

 

Similarities:

  Deadly Diamond of Death – Both OO ABAP and JAVA allow only one class extending/inheriting option.

   Inheritance, Polymorphism, encapsulation,

 

Differences:

 

Overloading is not supported in OO ABAP

Constructor concept is handled very differently in OO ABAP

Classes/Interface in OO ABAP along with attributes and functions have events. Event concept is important feature of OO ABAP in which the one object raises event; based on the requirement; client objects can subscribe to it.

 

 

I know above listed is points are few; will try to put some more points as and when I come across them.


Viewing all articles
Browse latest Browse all 943

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>