What is inheritance and multi-level inheritance? Explain with example ?

Answer Posted / sateesh

inheritance Means Re-usability, In SAP we have only single
Inheritance there is no Multiple Inheritance.
EG:
Class A{
Public Section: Write A.
}
Class B inheriting from A
{
Public Section: Write A,
Write B.
}
-> I mean here we are inheriting method A into Class B and
Redifing the method A and we are additionally adding "Write
B" in the Class B.
In ABAP only Single inheritance is Possible.

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

wat is the default file name of BAPI trace?

2003


How can an internal table with header line and one without header line bedistinguished when passed to a subroutine?

836


How can a lock object be called in the transaction?

764


Can you define a field without a data element?

739


What is the difference between semi-monthly and Bi-weekly payroll area

3239


Explain the disadvantages of abap query tool?

793


What is the use of the statement leave to list-processing?

776


Can you delete data element, which is being used by table fields. : abap data dictionary

863


What are the function modules used to create batch input session? : abap bdc

881


Differentiate screen painter from menu painter.

767


What are the disadvantages of using explicit enhancement?

1686


How to create a check box/option button in a list?

2684


How will you insert record in a sorted table

1049


Fallback class

1974


How do you find number of records present in internal table?

773