<?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 oops concept in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-concept/m-p/4115269#M983880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnz &lt;/P&gt;&lt;P&gt;what is the meaning of definition deferred and definition load in oops ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jul 2008 11:42:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-02T11:42:29Z</dc:date>
    <item>
      <title>oops concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-concept/m-p/4115269#M983880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frnz &lt;/P&gt;&lt;P&gt;what is the meaning of definition deferred and definition load in oops ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-concept/m-p/4115269#M983880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: oops concept</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oops-concept/m-p/4115270#M983881</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;If you mention the Deferred with class then class which you are going to create is known then later we create the definition  for that class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Load we are going to load the class from Class Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details go through the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS class DEFINITION {DEFERRED [PUBLIC]} | LOAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Extras: &lt;/P&gt;&lt;P&gt;1. ... DEFERRED [PUBLIC] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. ... LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;These two variants of the CLASS statement are used to make the class class known, regardless of the location of the actual definition of the class in the program. These variants do not introduce a declaration part and must not be enclosed using ENDCLASS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1 &lt;/P&gt;&lt;P&gt;... DEFERRED [PUBLIC] &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The variant with the DEFERRED addition makes a class known provisionally in the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without the PUBLIC addition, this variant makes a local class known before its actual definition. The program must contain an actual declaration part for class at a later point in the program. You cannot access individual components of the class before it is actually defined. You need to use this statement if you want to make a reference to a local class before it is defined. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the PUBLIC addition, this variant makes a global class known and defers loading the class until the end of the current program unit. You can only access individual components of the class after it has been loaded. This statement can be used to prevent unwanted recursion when making references to global classes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2 &lt;/P&gt;&lt;P&gt;... LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The variant with the LOAD addition loads a global class class from the Class Library. This statement was needed before Release 6.20 if you wanted to access one of the static components of class from within a program, or to declare an event handler for class before class had been loaded automatically. From Release 6.20 onwards, the LOAD addition is only needed if the compilation of an ABAP program fails because it includes recursive accesses of a globa l class. In such cases, you may be able to make the program compilable by explicitly loading the class before recursion. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;In this example, the class c1 uses the class c2 and vice versa. This means that one of the classes must be made known before it is actually defined. The global class cl_gui_cfw is also loaded before one of its static attributes is used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 DEFINITION DEFERRED. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c2 DEFINITION. &lt;/P&gt;&lt;P&gt;  PUBLIC SECTION. &lt;/P&gt;&lt;P&gt;    DATA c1ref TYPE REF TO c1. &lt;/P&gt;&lt;P&gt;ENDCLASS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 DEFINITION. &lt;/P&gt;&lt;P&gt;  PUBLIC SECTION. &lt;/P&gt;&lt;P&gt;    DATA c2ref TYPE REF TO c2. &lt;/P&gt;&lt;P&gt;ENDCLASS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS cl_gui_cfw DEFINITION LOAD. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA state LIKE cl_gui_cfw=&amp;gt;system_state. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An example of using the DEFERRED PUBLIC addition would be a type group in which a reference type is declared with a reference to a global class, which itself contains components with references to this reference type. In this situation, the entire class cannot be loaded before the type group, since the types are not yet known. However, after the CLASS DEFINITION ... DEFERRED PUBLIC statement, the class name can be specified after REF TO without the class having been loaded previously. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;if useful reward points.&lt;/STRONG&gt;*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2008 11:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oops-concept/m-p/4115270#M983881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-02T11:48:07Z</dc:date>
    </item>
  </channel>
</rss>

