What is the difference between Overloading and Overriding ? Which of them is possible in ABAP ?
Answers were Sorted based on User's Feedback
Answer / aseem
Overloading : Overloading is when we have 2 Methods in the same or derived class but have different parameters.
Overriding : When we re-implement the method of a super class in a derived class. Is possible via REDEFINITION keyword.
I'm not sure if the first one is possible in ABAP. Let me test it out repost the answer.
Is This Answer Correct ? | 17 Yes | 2 No |
Answer / surya
Overloading:in class same method have different parameters, number of parameters or same method have different signature . sap not sported method overloading
Overriding : super class methods are reimplemented in subclass by using key word REDEFINITION
Is This Answer Correct ? | 5 Yes | 0 No |
Answer / saurav
1. Overloading is possible only in case of constructor of a sub class.
2. Overriding is possible when you redefine a super class method in the sub class.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ramesh
METHOD OVERLOADING: It is used when the parameters used in super class method are same as parameters in subclass method.
METHOD OVERRIDING : It is used when the parameters are different from one method to other method.
Both methods are used in ABAP.
Is This Answer Correct ? | 0 Yes | 6 No |
What is the difference between RETURNING and CHANGING parameters for a method?
2-What is the difference between At New and On change Of inside a loop??I want inside a loop difference not basic difference??
How to get that a secondary index is attached to a select query?
What is an abap data dictionary? : abap data dictionary
can we insert two records in internal table? if yes give code.
What is the max. No. Of structures that can be included in a table or structure? : abap data dictionary
hw to explain scripts? like medruck, rvorder01, rvinvoice. help me, coz my resume is almost prepard bt nt geting confidence to attend interview bcoz i dnt knw hw to xpain few objects
Why first check bapi , if not available go bdc ?
How to Create an Interactive List based on the selection criteria specified for the customer number for displaying the customer information on the basic list, their corresponding order details on the secondary list. Plz specify the coding details. Regards, Rahul
How to define selection screen?
How to debug an Idoc at runtime?
What is the difference between getting and get late?