<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multiple Inheritence in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883151#M1478957</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formidable Harald, I can now watch your answers, and I'll be glad to see your silly answers, just to prove that you're human &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;About the watches, I have the same problem, I need about 100 attempts (!!), and I unwatch all old watches from time to time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 May 2010 10:55:40 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2010-05-24T10:55:40Z</dc:date>
    <item>
      <title>Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883144#M1478950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can You Tell me Multiple inheritence is possible using ABAP Objects, if Yes How?I thought We can't implement Multiple Inheritence in OBAP but We can implement Several Interfaces with in the Class? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;D.Kiran Kumar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 14:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883144#M1478950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-21T14:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883145#M1478951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's correct..  There is no multiple inheritance in ABAP, but a class can implement multiple interfaces for polymorphism.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 14:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883145#M1478951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-21T14:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883146#M1478952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;In terms of object oriented programming, there is a reason is reason why multiple inheritance cannot be supported by a pure Object-Oriented Language (for example Java, ABAP).&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Consider you have two classes C1 &amp;amp; C2. Both the classes have a method. The name of the method is M. The signature of the method M (i.e. its importing/exporting parameters) is same in both the classes. But the internal implementation the method (i.e. the logic or the code inside the method) being different.&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Now, if the multiple inheritance had been supported by ABAP, in that condition, if there is a class C3, which inherits from both classes C1 &amp;amp; C2 (i.e. C1 &amp;amp; C2 being the base class of the child-class C3). Then by the rule of inheritance, the child class should inherit the methods of its parent class. But, in this case, the system would not be able to determine from which of the parent class C1 or C2 should the method M be inherited to child class C3.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;There is one more way to look at it. Suppose, if you call the method C3-&amp;gt;M( ). The system will first try to find the method in class C3. When if does not find the method in C3, it will try to look for the method in the base class. But, in this case, the system would not be able to determine, which of the code C1-&amp;gt;M( ) or C2-&amp;gt;M( ) it should execute. This is just a logical explanation &amp;amp; this is the reason why multiple inheritance is not supported by a Pure Object Oriented language. &lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;However, an object-based language like C++ supports Multiple inheritance.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Explanation for why multiple inheritance is possible through INTERFACES.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Consider you have two classes C1 &amp;amp; C2, both having a method as M with same signature. The only difference in this case is that the class C2 does not contain any definition (logic or code) for the method (i.e. it just defines the method but does not implement it). In this case, it would be clear to the system that the method M should be inherited from the base-class C1 to child-class C3 (since C2 does not contain any definition).&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;In this case, we do not call the class C2  as a class but it is an INTERFACE. If you would have some idea Java, you would know that an interface is a Pure Abstract Class i.e. a class, which contains only the declarations for the methods but no implementations for any of the methods.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Hope that helps you understand why you are able to implement several interfaces along with one single Base-Class into a child-class. &lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any query regarding the same.&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;Saurabh&amp;lt;br&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;Edited by: Matt on May 24, 2010 9:30 AM - correct formatting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 07:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883146#M1478952</guid>
      <dc:creator>former_member776318</dc:creator>
      <dc:date>2010-05-23T07:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883147#M1478953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;@Kiran&lt;/STRONG&gt;: I recommend for simple questions like this to take a quick look at the ABAP help. It's rather trivial to get to the explanation for [inheritance|http://help.sap.com/abapdocu_70/en/ABENINHERITANCE.htm] and see this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Objects applies the principle of &lt;STRONG&gt;single inheritance&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Following the link on [inheritance and interfaces|http://help.sap.com/abapdocu_70/en/ABENINHERITANCE_INTERFACES.htm] will tell you&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;classes of an inheritance tree can implement any number of interfaces&lt;/STRONG&gt; but each interface can be implemented only once in each inheritance tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;@Saurabh&lt;/STRONG&gt;, let's try to keep our facts straight. You basically describe the [diamond problem|http://en.wikipedia.org/wiki/Diamond_problem], but come to a wrong conclusion. [Multiple inheritance|http://en.wikipedia.org/wiki/Multiple_inheritance] is possible and used by (some) [OOP|http://en.wikipedia.org/wiki/Object-oriented_programming] languages (and those which don't have it often have similar features like [mixins|http://en.wikipedia.org/wiki/Mixin] etc.). It's simply a design choice if a language should support &lt;EM&gt;multiple inheritance or not&lt;/EM&gt; and if yes, how to resolve a method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 08:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883147#M1478953</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-23T08:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883148#M1478954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harald, sorry to bother you in that thread, do you know how I can watch your posts (it's really a pleasure to learn from you!) I can for Thomas Jung, Otto Gold, Rob Burbank, etc., but not you, unfortunately.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 16:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883148#M1478954</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-23T16:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883149#M1478955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Harald would have to switch on the ability to be watched himself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 07:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883149#M1478955</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-05-24T07:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883150#M1478956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, had set at some point the option &lt;EM&gt;Allow other users to watch me&lt;/EM&gt; to &lt;EM&gt;No&lt;/EM&gt;, because I felt embarrassed that people might find out that my [BS|http://wordnetweb.princeton.edu/perl/webwn?s=****]-to-valuable-posting-ratio is awfully high (and without a specific watch it's easier to hide among the other silly postings). Anyhow, if you're willing to ignore/skip over the crap, I've now changed my settings... &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s.: It actually drove me nuts, because I first couldn't find the setting. I kind of suspected that it's in the &lt;EM&gt;Your watches&lt;/EM&gt; section, but here I almost always get a gateway timeout (maybe I should delete some or SAP should somehow speed up the query). I've tried this from time to time over the last twelve hours and only now it succeeded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 07:52:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883150#M1478956</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T07:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883151#M1478957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Formidable Harald, I can now watch your answers, and I'll be glad to see your silly answers, just to prove that you're human &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;About the watches, I have the same problem, I need about 100 attempts (!!), and I unwatch all old watches from time to time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 10:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883151#M1478957</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-24T10:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Inheritence</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883152#M1478958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;However, unlike C++, ABAP Objecs support only single inheritance. Because it is Confusion to base Class&lt;/P&gt;&lt;P&gt;access the instance methods of  the two Super Classes.&lt;/P&gt;&lt;P&gt;Using Interfaces we can implement multiple inheritance concept in ABAP like in JAVA.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 09:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/multiple-inheritence/m-p/6883152#M1478958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T09:10:23Z</dc:date>
    </item>
  </channel>
</rss>

