Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Class Definition & Implementation

Former Member
0 Likes
606

Hi,

In JAVA or Other OOP languages the class definition & implementation are doing within the same task i.e with in the class only they are defining & implementing.But when it comes to ABAP the definition part & implementation part of a class are divided into 2 tasks. Why they are designed like that?

2 REPLIES 2
Read only

Former Member
0 Likes
479

hi,

i do not know whether you know the language of c++ or not, in c++ , we can define and implement the

class separately or implement the class within the definition of the class, but in java we do not do like this. and in abap , we must do it separately. i think the design is not that important, and the key point to us is what we must follow the principle of the oops.

that is my understanding about this issue.

Read only

Former Member
0 Likes
479

Hi Suresh Reddy,

The main intention behind this design is

" to differentiate the class definition and implementation clearly ."

Even if you have a chance to including both class definition and implementation in same structure, it is difficult to differentiate these things in lengthy implementation classes.

Thank you,

Prasad GVK.