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

Answer Posted / instance softech

Inheritance is nothing but acquiring the properties of one
class(base class) to another class(child class).

Multi-level Inheritance is nothing but one parent class that
have more than one child class. For Ex, P1 is parent Class
and C1 and C2 are the Child classes, now C1 can acquire the
properties of Parent class P1 and C2 can acquire the
properties of both Child calss C1 and Parent Class P1.

SAP ABAP SUPPORTS MULTI-LEVEL INHERITANCE... SAP ABAP NOT
SUPPORTS MULTIPLE INHERITANCE, ACHIEVES THROUGH INTERFACES
CONCEPT...

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by a schema? : sap abap hr

584


How are the function code handles in flow logic?

612


What is view? Explain the different types of view?

789


What is processing class, where we do them and why? : sap abap hr

577


How is conversion of data types done between abap/4 & external level?

572






Can you delete a domain, which is being used by data elements? : abap data dictionary

819


What are the uses of table pool or table cluster.

539


How can you manipulate the presentation and attributes of interactive lists?

617


Can i Have Some Realtime Examples on Badi ?

8291


What is payroll driver

1652


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

598


in bdcsome times we get the ok code for "enter" wrongly instead of '/00'.what is the reason.how we can exceed this problem.

1727


Normally how many and what files get created when a transaction program is written?

565


What is the difference between synchronous and asynchronous update?

648


What are the two levels in defining a match code ?

595