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

stock transfer from one plant to another plant ? i want the total description.

1582


how to update the filed value in SAP in ZAWSYS and create time and date? please tell me the answer

1824


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

582


Which transaction code can I use to analyze the performance of abap program?

568


How to define selection screen?

604






Explain how do you move on to the next screen in interactive reporting?

579


What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?

607


What is the difference between abap and hr abap? : abap hr

617


What is view? Different types of view.

592


What is the last entry in all bdc tables? : abap bdc

608


What is difference between float and packed data type?

651


What is an rdbms?

588


How do you convert non-char field into char type fields ?

1755


What are the two different ways of building a match code object? : abap data dictionary

624


How do you document abap/4 programs? Do you use program documentation menu option?

706