<?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: protected components and private components in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202937#M1004534</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; Are you asking in the Object oriented context? If yes here is the explanation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When you declare components in private then, only the objects created for that class can access those components. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Protected component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When you declare components as protected, then the objects created for that class can access those components + the objects declared as friends for this class can also access those components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS C1 DEFINITION &lt;STRONG&gt;FRIENDS C2&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;  PRIVATE SECTION. &lt;/P&gt;&lt;P&gt;   DATA A1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   PROTECTED SECTION.&lt;/P&gt;&lt;P&gt;   DATA A2&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;CLASS C2 DEFINITION. &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;&lt;/P&gt;&lt;P&gt;Here objects created for C2 &lt;STRONG&gt;can access data A2 (from C1) but not A1.&lt;/STRONG&gt;    A1 data is strictly accessible only for objects created for class 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;Hope you get the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 10:13:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-16T10:13:38Z</dc:date>
    <item>
      <title>protected components and private components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202934#M1004531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what is the difference between protected components and private components.&lt;/P&gt;&lt;P&gt;It seems like both of them are the same. Sorry, I am confusing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is greatly appreciated if someone could explain to me with examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202934#M1004531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: protected components and private components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202935#M1004532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried searching this forum?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:05:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202935#M1004532</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-07-16T10:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: protected components and private components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202936#M1004533</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;Protected Components&lt;/P&gt;&lt;P&gt;All of the components declared in the protected section are accessible to all methods of the class and of classes that inherit from it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private Components&lt;/P&gt;&lt;P&gt;Components that you declare in the private section are only visible in the methods of the same class. The private components are not part of the external interface of the class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikunj Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202936#M1004533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: protected components and private components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202937#M1004534</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; Are you asking in the Object oriented context? If yes here is the explanation,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When you declare components in private then, only the objects created for that class can access those components. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Protected component&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; When you declare components as protected, then the objects created for that class can access those components + the objects declared as friends for this class can also access those components&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS C1 DEFINITION &lt;STRONG&gt;FRIENDS C2&lt;/STRONG&gt;. &lt;/P&gt;&lt;P&gt;  PRIVATE SECTION. &lt;/P&gt;&lt;P&gt;   DATA A1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   PROTECTED SECTION.&lt;/P&gt;&lt;P&gt;   DATA A2&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;CLASS C2 DEFINITION. &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;&lt;/P&gt;&lt;P&gt;Here objects created for C2 &lt;STRONG&gt;can access data A2 (from C1) but not A1.&lt;/STRONG&gt;    A1 data is strictly accessible only for objects created for class 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;Hope you get the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202937#M1004534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: protected components and private components</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202938#M1004535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the explanation. At least now I have some hints on these.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2008 00:15:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/protected-components-and-private-components/m-p/4202938#M1004535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-17T00:15:28Z</dc:date>
    </item>
  </channel>
</rss>

