Question { Keane India Ltd, 17968 }
What is inheritance and multi-level inheritance? Explain with example ?
Answer
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...