<?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: inheritance questions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436104#M1052901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the CONSTRUCTOR section in this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stated that no parameters can be passed to CLASS CONSTRUCTOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2008 11:22:22 GMT</pubDate>
    <dc:creator>narin_nandivada3</dc:creator>
    <dc:date>2008-09-19T11:22:22Z</dc:date>
    <item>
      <title>inheritance questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436100#M1052897</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;i inheritance to subclass from super ( global-  se24)&lt;/P&gt;&lt;P&gt;and i have 2 constructors &lt;/P&gt;&lt;P&gt;1. CONSTRUCTOR - from the super&lt;/P&gt;&lt;P&gt;2.CLASS_CONSTRUCTOR - of the sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to add parameters  to &lt;U&gt;Class constructo&lt;/U&gt;r and i cant i get this Error (Class constructors and destructors do not have parameters and exceptions)  way? the  CONSTRUCTOR  of the super have parameters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 13:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436100#M1052897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-18T13:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: inheritance questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436101#M1052898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CONSTRUCTOR could have the Importing parameter but the CLASS_CONSTRUCTOR will not have any parameter.&lt;/P&gt;&lt;P&gt;CLASS_CONSTRUCTOR is a static class and parameters to that method are not supported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check online help on the class_constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example from the help:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS some_class DEFINITION. 
  PUBLIC SECTION. 
    CLASS-METHODS class_constructor. 
  PRIVATE SECTION. 
    CLASS-DATA access_program TYPE sy-repid. 
ENDCLASS. 

CLASS some_class IMPLEMENTATION. 
  METHOD class_constructor. 
    access_program = sy-repid. 
  ENDMETHOD. 
ENDCLASS. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2008 13:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436101#M1052898</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-09-18T13:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: inheritance questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436102#M1052899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS_CONSTRUCTOR's are nothing but Static constructors. They do not have  any parameters as &lt;/P&gt;&lt;P&gt;normal Constructors do.. In general these are used to instantiate a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a CLASS_CONSTRUCTOR IMPLEMENTATION specify CREATE OBJECT &amp;lt;obj1&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obj1 may be the ref of anyother class in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when ever the program is executed the Object is created for the class its referred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 09:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436102#M1052899</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-09-19T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: inheritance questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436103#M1052900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Naimesh Patel ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to put parameters in constructor &lt;STRONG&gt;of sub class&lt;/STRONG&gt; where i do that? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i ask it becouse i in the sub class i have &lt;/P&gt;&lt;P&gt;1. constructor - of the super class.&lt;/P&gt;&lt;P&gt;2. ClassConstructor  - of the sub and i cant put in that parmaters .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if i want to create object with parameters of type ref to the subcalss with export (to the constucor) how i do that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 10:22:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436103#M1052900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T10:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: inheritance questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436104#M1052901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the CONSTRUCTOR section in this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stated that no parameters can be passed to CLASS CONSTRUCTOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this would help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;Narin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 11:22:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436104#M1052901</guid>
      <dc:creator>narin_nandivada3</dc:creator>
      <dc:date>2008-09-19T11:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: inheritance questions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436105#M1052902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to SE24.&lt;/P&gt;&lt;P&gt;Open your SubClass&lt;/P&gt;&lt;P&gt;And press the "Create Constructor" button&lt;/P&gt;&lt;P&gt;It will ask if you want to include the parameters from the Super class.&lt;/P&gt;&lt;P&gt;If you need than press Yes, else press NO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when you create a reference of this class.&lt;/P&gt;&lt;P&gt;It will first call the Super's Constructor&lt;/P&gt;&lt;P&gt;Than Subclass's construtor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 12:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-questions/m-p/4436105#M1052902</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-09-19T12:59:19Z</dc:date>
    </item>
  </channel>
</rss>

