<?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: Why is &amp;quot;to access components using the interface component selector&amp;quot; is not recommended? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535404#M2005725</link>
    <description>&lt;P&gt;For a pure Object Oriented point of view:&lt;/P&gt;&lt;P&gt;In the first case the instance of your object are using an interface and stay in the "contract" manage by the interface&lt;/P&gt;&lt;P&gt;In the second case, your instance doesn't follow any interface, you have create an instance using directly the Class. You could access all the methods proposed by all the related interfaces ....   it is the jungle! &lt;/P&gt;&lt;P&gt;In Oo concept, all class should have one or several interfaces, and instance creation must always use interface. (and you should not have public method / data available directly in the class)&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 11:53:31 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2022-03-15T11:53:31Z</dc:date>
    <item>
      <title>Why is "to access components using the interface component selector" is not recommended?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535403#M2005724</link>
      <description>&lt;P&gt;According to the sap help, it says "It is possible to access components using the interface component selector, but it is not recommended." Can anyone help me understand why is this not recommended. Below is the snippet.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2031649-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535403#M2005724</guid>
      <dc:creator>pradeep3811</dc:creator>
      <dc:date>2022-03-15T11:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why is "to access components using the interface component selector" is not recommended?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535404#M2005725</link>
      <description>&lt;P&gt;For a pure Object Oriented point of view:&lt;/P&gt;&lt;P&gt;In the first case the instance of your object are using an interface and stay in the "contract" manage by the interface&lt;/P&gt;&lt;P&gt;In the second case, your instance doesn't follow any interface, you have create an instance using directly the Class. You could access all the methods proposed by all the related interfaces ....   it is the jungle! &lt;/P&gt;&lt;P&gt;In Oo concept, all class should have one or several interfaces, and instance creation must always use interface. (and you should not have public method / data available directly in the class)&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 11:53:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535404#M2005725</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2022-03-15T11:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why is "to access components using the interface component selector" is not recommended?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535405#M2005726</link>
      <description>&lt;P&gt;&lt;A href="https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abenclass_component_glosry.htm"&gt;According to the SAP help&lt;/A&gt;... because it's uselessly complex&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 17:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-is-quot-to-access-components-using-the-interface-component-selector/m-p/12535405#M2005726</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2022-03-15T17:38:54Z</dc:date>
    </item>
  </channel>
</rss>

