What is inheritance and multi-level inheritance? Explain with example ?
Answers were Sorted based on User's Feedback
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 |
It is an OO ABAP - Classes Development Inheritance and
polymorphism
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / 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 |
how to transfer smartforms?
What are control break statements?
19 Answers Cap Gemini, College School Exams Tests, Keane India Ltd, Wipro,
When writing BDC for MM01 how do you take care of views?
Modes in Call Tr?
11. what is the difference between user-exit & customer-exit?
What are the select-option fields?
what are the stpes in ALE?
What is the difference between User Exits and BADI?
5 Answers Accenture, IBM, SAP Labs,
differences between version 4.7 and ecc 5.0
Explain the different types of mode (run code) in call transaction method?
How to display dynamic logo's in Smartforms? i mean to say different logo's on different pages?
2 Answers Altimetrics, Cap Gemini,
How many servers present for Database servers,Presentation and Application servers in Landscape? All these servers are present at client side or company side,means where the Database server is Located, where the Application and Presentation servers Located in a Landscape?