<?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: Accessing Private class data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901151#M1481345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 09:16:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-27T09:16:40Z</dc:date>
    <item>
      <title>Accessing Private class data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901147#M1481341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have Created Class in SE24 and I have declared three public methods in that class and Finally I made Class as Private. then How can access the public methods of the class From the Report Program.&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>Sun, 23 May 2010 12:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901147#M1481341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-23T12:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Private class data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901148#M1481342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; I made Class as Private&lt;/P&gt;&lt;P&gt;hmmm. I guess you mean the flag which is located in the properties of the class. It means that you &lt;STRONG&gt;restrict the access to the class instanciation: it can only be instantiated by a method of the class itself, not from outside the class&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always access the public methods from everywhere. It's only the CREATE OBJECT (the instanciation) that you can't do outside the class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 May 2010 13:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901148#M1481342</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-05-23T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Private class data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901149#M1481343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can not access the public methods of the private class because you can not create the object of that private class......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards &lt;/P&gt;&lt;P&gt;Gaurav Khare&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 07:12:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901149#M1481343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-24T07:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Private class data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901150#M1481344</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;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; hi Kiran,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; you can not access the public methods of the private class because you can not create the object of that private class......&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks and Regards &lt;/P&gt;&lt;P&gt;&amp;gt; Gaurav Khare&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not so. Consider a class &lt;EM&gt;my_class&lt;/EM&gt; which is marked as private. Create a static public method, which returns r_myinstance TYPE REF TO my_class. The body of the static public method is &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT r_myclass&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;. The static method is called a factory method. It can be used to implement the singleton pattern, and in other ways. There is extensive literature about this on the net.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 May 2010 07:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901150#M1481344</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-05-24T07:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Private class data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901151#M1481345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 09:16:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-private-class-data/m-p/6901151#M1481345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T09:16:40Z</dc:date>
    </item>
  </channel>
</rss>

