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

What is the function module for INDIAN PAYROLL to read table cluster for given cluster table and sequence number?

1825


Explain the Types of Select statements?

657


What are matchcodes?

557


What is the difference between Exit and Stop?

623


What is web dynpro for abap?

581






How can one distinguish between different kinds of parameters? : abap modularization

599


what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?

1734


when u prefer lsmw?

626


Explain different types of locks?

573


Different between Interface and Abstract classes?

1121


How do you write a function module in sap?

622


What is the function of a data element?

627


Explain get cursor field?

678


What is projection view?

545


How do you read files from the presentation server ? : abap bdc

586