<?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: Regarding Deffered definition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768945#M645036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satya,&lt;/P&gt;&lt;P&gt;it's &amp;lt;b&amp;gt;very&amp;lt;/b&amp;gt; useful when you have 2 classes, one referring to each other. If there was no deferred definition, you would have a syntax check in the definition of the first class. By deferring, you are telling the compiler: "OK, here is class C1, but I won't declared it completely because it refers to class C2, which is declared afterwards".&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS C1 DEFINITION.
PUBLIC SECTION.
DATA O2 TYPE REF TO C2.   "&amp;lt;-- syntax error!!! C2 is not yet defined
ENDCLASS.

CLASS C2 DEFINITION.
PUBLIC SECTION.
DATA O1 TYPE REF TO C1.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS C2 DEFINITION DEFERRED.

CLASS C1 DEFINITION.
PUBLIC SECTION.
DATA O2 TYPE REF TO C2.   "&amp;lt;-- OK!!! C2 is yet defined (deferred)
ENDCLASS.

CLASS C2 DEFINITION.
PUBLIC SECTION.
DATA O1 TYPE REF TO C1.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Aug 2007 12:13:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-31T12:13:37Z</dc:date>
    <item>
      <title>Regarding Deffered definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768944#M645035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I am writing below a small code which says Deffered definition of class.&lt;/P&gt;&lt;P&gt;     Can anyone tell me what is the main objective of going for deffered defintion .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.6	Deferred Definition of a Class&lt;/P&gt;&lt;P&gt;Theme	This program will demonstrate how one can refer to a class without defining the class before that point. But, the class has to be defined later on.&lt;/P&gt;&lt;P&gt;Program description	In this program , class C1 has an interface reference O2 declared with reference to class C2. But, before that, class C2 is not defined. It is defined later with a single public attribute , NUM .&lt;/P&gt;&lt;P&gt;This demonstrates the theme.&lt;/P&gt;&lt;P&gt;In the main section of the program, object : OBJ1 is created from class C1.&lt;/P&gt;&lt;P&gt;Then, an object is created from the reference variable O2 in class C1. Finally, the attribute num of that object is displayed.&lt;/P&gt;&lt;P&gt;Dump	report ysubdel1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS C2 DEFINITION DEFERRED.&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 O2 TYPE REF TO C2.&lt;/P&gt;&lt;P&gt;ENDCLASS.&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 : num type i value 5.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; data : obj1 type ref to C1.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT obj1.&lt;/P&gt;&lt;P&gt;  create object obj1-&amp;gt;o2.&lt;/P&gt;&lt;P&gt;  write:/5 obj1-&amp;gt;o2-&amp;gt;num .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 11:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768944#M645035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T11:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Deffered definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768945#M645036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi satya,&lt;/P&gt;&lt;P&gt;it's &amp;lt;b&amp;gt;very&amp;lt;/b&amp;gt; useful when you have 2 classes, one referring to each other. If there was no deferred definition, you would have a syntax check in the definition of the first class. By deferring, you are telling the compiler: "OK, here is class C1, but I won't declared it completely because it refers to class C2, which is declared afterwards".&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS C1 DEFINITION.
PUBLIC SECTION.
DATA O2 TYPE REF TO C2.   "&amp;lt;-- syntax error!!! C2 is not yet defined
ENDCLASS.

CLASS C2 DEFINITION.
PUBLIC SECTION.
DATA O1 TYPE REF TO C1.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS C2 DEFINITION DEFERRED.

CLASS C1 DEFINITION.
PUBLIC SECTION.
DATA O2 TYPE REF TO C2.   "&amp;lt;-- OK!!! C2 is yet defined (deferred)
ENDCLASS.

CLASS C2 DEFINITION.
PUBLIC SECTION.
DATA O1 TYPE REF TO C1.
ENDCLASS.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I hope it helps. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768945#M645036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Deffered definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768946#M645037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alvaro &lt;/P&gt;&lt;P&gt;Thanks for replying i understood ur answer. But anyways we are defining class c2 afterwards right. so wht is the reality of use of this type of application . i mean that will it hold any improtance in real time work.&lt;/P&gt;&lt;P&gt;I have that doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:40:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768946#M645037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Deffered definition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768947#M645038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Satya,&lt;/P&gt;&lt;P&gt;well, if you're talking about performance, or behaviour, it's the same as if it were not deferred. It's just a technique to solve a pitfall when two classes refer one to each other. In any other sense, the functionality is exactly the same as usual.&lt;/P&gt;&lt;P&gt;I hope this explanation is clear enough. If not, please answer back with your doubts. Best regards,&lt;/P&gt;&lt;P&gt;Alvaro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 12:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-deffered-definition/m-p/2768947#M645038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T12:44:26Z</dc:date>
    </item>
  </channel>
</rss>

