2008 Feb 27 12:28 PM
Hi Experts,
i have doubt in inheritances .
why multiple inheritance is not possible in OOAbap ?
wat is the Reason ?
can any one Clarify my doubt ?
Cheers,
Rajesh .!
2008 Feb 27 12:57 PM
Multiple inheritance is not permitted in ABAP Objects, because the language designers considered that it would cause ambiguity and complexity they didn't want.
Use interfaces instead. See my recent post about interfaces for ideas.
matt
Multiple inheritance is not permitted in ABAP Objects, because the language designers considered that it would cause ambiguity and complexity they didn't want.
Use interfaces instead. See my recent post about interfaces for ideas.
matt
2008 Feb 27 12:57 PM
Multiple inheritance is not permitted in ABAP Objects, because the language designers considered that it would cause ambiguity and complexity they didn't want.
Use interfaces instead. See my recent post about interfaces for ideas.
matt
2008 Feb 27 3:26 PM
Problems:
mostly used as mixin = interface
polymorphism on all axes (substitutability is hard)
name conflicts (in distributed development!)
multiple base classes? (diamond inheritance)
combinatorial explosion for multiple classification
must be resolved by role pattern or the like
would be static, not dynamic
=> multiple inheritance doesnt do it!
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |