<?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 Why interface method not inheriting from into class ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767717#M1676960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created zinter interface in that method zmethod is there. I inherited this interface to zinterface1 and zinterface2. Again I defined the method zmethod1 in both interfaces zinterface1 and zinterface2. Now If I am inheriting the 2 interfaces zinterface1 and 2, in the class only zinterface1~method1 and zinterface2~method1 are displaying. Why zinter interface method zmethod is not displaying ?&lt;/P&gt;&lt;P&gt;the hierarchy is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zinter - method&lt;/P&gt;&lt;P&gt;zinterface1 inherited from zinter having method zmethod1&lt;/P&gt;&lt;P&gt;zinterface2 inherited from zinter having method zmethod1.&lt;/P&gt;&lt;P&gt;zclass inherited from zinterface1 and zinterface2 having method zinterface~method1 and zinterface~method1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2012 05:33:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-05-21T05:33:00Z</dc:date>
    <item>
      <title>Why interface method not inheriting from into class ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767717#M1676960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created zinter interface in that method zmethod is there. I inherited this interface to zinterface1 and zinterface2. Again I defined the method zmethod1 in both interfaces zinterface1 and zinterface2. Now If I am inheriting the 2 interfaces zinterface1 and 2, in the class only zinterface1~method1 and zinterface2~method1 are displaying. Why zinter interface method zmethod is not displaying ?&lt;/P&gt;&lt;P&gt;the hierarchy is like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zinter - method&lt;/P&gt;&lt;P&gt;zinterface1 inherited from zinter having method zmethod1&lt;/P&gt;&lt;P&gt;zinterface2 inherited from zinter having method zmethod1.&lt;/P&gt;&lt;P&gt;zclass inherited from zinterface1 and zinterface2 having method zinterface~method1 and zinterface~method1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 05:33:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767717#M1676960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-21T05:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why interface method not inheriting from into class ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767718#M1676961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you are trying in implementing the Composite Interface. In an interface, a component will only appear once even though it is defined multiple times. E.g. in you example, ZINTER is defined more than once in the Class definition as part of ZINT1 and ZINT2. You would be only able to create a Single implementation of ZINTER~ZMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;sk yakub wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why zinter interface method zmethod is not displaying ?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you referring to the Tree hierarchy display. Since you have declared your concrete class with &lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN class="L0S52"&gt;INTERFACEs&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;zint1&lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;zint2&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. only they are visible as in Class hierarchy. If you drill down the interface hierarchy of ZINT1, you would see the ZINTER.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Naimesh Patel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 14:41:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767718#M1676961</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2012-05-22T14:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why interface method not inheriting from into class ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767719#M1676962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yakub,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried this it is displaying zmethod of zinter interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interface methods are always referred by the interface in which it is defined. It does not depend on the interface that is implementing that interface.&lt;/P&gt;&lt;P&gt;Suppose you have an interface name &lt;STRONG&gt;ZIF_SUPER, &lt;/STRONG&gt;In this interface you have some method named &lt;STRONG&gt;add. &lt;/STRONG&gt;Now if there are two more interfaces named &lt;STRONG&gt;ZIF_SUB1 &amp;amp; ZIF_SUB2 &lt;/STRONG&gt;they both are implementing the interface &lt;STRONG&gt;ZIF_SUPER. &lt;/STRONG&gt;Now both the interface will have method &lt;STRONG&gt;ZIF_SUPER&lt;/STRONG&gt;~&lt;STRONG&gt;ADD.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now suppose if you add one more method named &lt;STRONG&gt;MINUS &lt;/STRONG&gt;to both the interface and then implement both the interface in One class suppose &lt;STRONG&gt;ZCL_INTERFACE_TEST, &lt;/STRONG&gt;then in this class only three method named &lt;STRONG&gt;ZIF_SUPER&lt;/STRONG&gt;~&lt;STRONG&gt;ADD , &lt;STRONG&gt;ZIF_SUB1~MINUS &lt;/STRONG&gt;&lt;/STRONG&gt;and &lt;STRONG&gt;&lt;STRONG&gt;&lt;STRONG&gt;ZIF_SUB2~MINUS&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt; will be available to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajeet Pratap Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 05:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767719#M1676962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-23T05:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why interface method not inheriting from into class ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767720#M1676963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To inherit methods of an interface into another, you just have to define its usage in the interface and not redefine the methods again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g &amp;gt; interfaceA with method a_1 , interfaceB with method b_1, interfaceC with method c_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now i want methods of interfaceA to be inherited in interfaceB and interfaceC so what i do is define its usage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERFACE interfaceB DEFINITION.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTERFACES interfaceA.&lt;/P&gt;&lt;P&gt;INTERFACEEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTERFACE interfaceC DEFINITION.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTERFACES interfaceA.&lt;/P&gt;&lt;P&gt;INTERFACEEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats all and such type of interfaces including other interfaces are called Composite Interfaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in a class abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS abc DEFINITION.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTERFACES interfaceB&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS abc IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHOD interfaceA~a_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHOD interfaceb~b_1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2013 11:11:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-interface-method-not-inheriting-from-into-class/m-p/8767720#M1676963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-04T11:11:55Z</dc:date>
    </item>
  </channel>
</rss>

