<?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: Doubt in inheritance tree..! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535042#M850588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  The root class is: c1.&lt;/P&gt;&lt;P&gt;      parent class c1&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;       child class c2&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;        child classc3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C3 class inherits the properties of c2 and c1 also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP  like Java, multiple inheritance is not allowed.&lt;/P&gt;&lt;P&gt;This is one of the way to achive multiple inheritence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is helpful rewards points.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Feb 2008 06:02:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-29T06:02:24Z</dc:date>
    <item>
      <title>Doubt in inheritance tree..!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535041#M850587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi SAP Guru's !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is My example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class c1 definition.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class c2 definition INHERITING FROM c1.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt;endclass..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class c3 definition INHERITING FROM c2.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt; - - - - - -.&lt;/P&gt;&lt;P&gt;endclass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of these which one is the root node of inheritance tree  ?&lt;/P&gt;&lt;P&gt;   and&lt;/P&gt;&lt;P&gt;what is the meaning of this (empty class object )&lt;/P&gt;&lt;P&gt;" &lt;STRONG&gt;the root node on all inheritance trees in ABAP Objects is the predefined EMPTY class OBJECT&lt;/STRONG&gt;. "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 04:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535041#M850587</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T04:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in inheritance tree..!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535042#M850588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;  The root class is: c1.&lt;/P&gt;&lt;P&gt;      parent class c1&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;       child class c2&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;        child classc3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C3 class inherits the properties of c2 and c1 also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ABAP  like Java, multiple inheritance is not allowed.&lt;/P&gt;&lt;P&gt;This is one of the way to achive multiple inheritence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is helpful rewards points.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pratap.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 06:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535042#M850588</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T06:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in inheritance tree..!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535043#M850589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rajesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The root of all classes in ABAP is the class &lt;STRONG&gt;OBJECT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Think about an itab in which you want to store instances of any kind of class. What kind of linet_type do you use for your itab?&lt;/P&gt;&lt;P&gt;If, for example, all your collected instances are sub-classes of your c1 class (or c1 itself) then you could use your class C1 as line_type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the collected instances do not belong to a single inheritance tree then you must use class OBJECT as line_type.&lt;/P&gt;&lt;P&gt;Example: Have a look at the iterator class &lt;STRONG&gt;CL_SWF_UTL_ITERATOR&lt;/STRONG&gt; and its attribute MT_OBJECT_LIST where any kind of instances can be collected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further examples of how to use the iterator class or class OBJECT are:&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="335688"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[Accessing the Inacessible - Local Classes within Global Classes|https://wiki.sdn.sap.com/wiki/display/ABAP/Accessing&lt;EM&gt;the&lt;/EM&gt;Inacessible&lt;EM&gt;-&lt;/EM&gt;Local&lt;EM&gt;Classes&lt;/EM&gt;within&lt;EM&gt;Global&lt;/EM&gt;Classes]&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 06:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535043#M850589</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-02-29T06:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in inheritance tree..!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535044#M850590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; In ABAP  like Java, multiple inheritance is not allowed.&lt;/P&gt;&lt;P&gt;&amp;gt; This is one of the way to achive multiple inheritence.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No.  You achieve behaviour &lt;EM&gt;like&lt;/EM&gt; multiple inheritence through interfaces, not subclassing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multiple inheritance in C++, for example, is when a class has 2 or more superclasses.  Which would be something like &lt;STRONG&gt;Class c3 definition INHERITING FROM c1 and c2&lt;/STRONG&gt;. ( When c2 is NOT a subclass of c1 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 09:04:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-inheritance-tree/m-p/3535044#M850590</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-02-29T09:04:57Z</dc:date>
    </item>
  </channel>
</rss>

