<?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 and constructor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440791#M1740271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because it is the law!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because ABAP is designed that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because good OO design suggests (for the reasons given by &lt;STRONG style="font-size: 11.111111640930176px; background-color: #ffffff; color: #333333;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/krishnakant.joshi" id="jive-63503546554872849181167" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;Krishnakant Joshi&lt;/A&gt;&lt;/STRONG&gt; below), that you should always call the super-constructor before doing anything in the constructor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 12:13:38 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2013-05-30T12:13:38Z</dc:date>
    <item>
      <title>Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440784#M1740264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt;Hello Friends,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt;I am implementing inheritance in my code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt;We have a class called COMMON and another class is CREATE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt;I am Inheriting COMMON in CREATE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: gray; font-size: 10pt;"&gt;**********************************************************************&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;* CLASS COMMON DEFINITION.&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;**********************************************************************&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;CLASS &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; COMMON&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; &lt;SPAN style="color: blue;"&gt;DEFINITION.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;ENDCLASS.&lt;/SPAN&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: gray; font-size: 10pt;"&gt;**********************************************************************&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;* CLASS COMMON IMPLEMENTATION.&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;**********************************************************************&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;CLASS &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; COMMON&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; &lt;SPAN style="color: blue;"&gt;IMPLEMENTATION.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;ENDCLASS.&lt;/SPAN&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: gray; font-size: 10pt;"&gt;***********************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: gray; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;&lt;EM style="color: gray;"&gt;* CLASS CREATE DEFINITION.&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;**********************************************************************&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;CLASS &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; CREATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; &lt;SPAN style="color: blue;"&gt;DEFINITION INHERITING FROM COMMON.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;PUBLIC SECTION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;METHODS: &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; constructor&amp;nbsp;&amp;nbsp;&amp;nbsp; . &lt;EM style="color: gray;"&gt;"constructor&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;DATA&amp;nbsp;&amp;nbsp; :&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;name(4) type c . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;ENDCLASS.&lt;/SPAN&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: gray; font-size: 10pt;"&gt;**********************************************************************&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;* CLASS CREATE IMPLEMENTATION.&lt;/EM&gt;&lt;BR /&gt;&lt;EM style="color: gray;"&gt;**********************************************************************&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;CLASS &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif';"&gt; CREATE&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; &lt;SPAN style="color: blue;"&gt;IMPLEMENTATION.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt; &lt;SPAN style="color: blue;"&gt;METHOD &lt;/SPAN&gt;constructor. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = 'Krishnakant'. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;&amp;nbsp; ENDMETHOD&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; font-size: 10pt;"&gt;.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Cambria','serif'; color: blue; font-size: 10pt;"&gt;ENDCLASS.&lt;/SPAN&gt;&lt;SPAN lang="EN" style="font-family: 'Cambria','serif';"&gt; &lt;/SPAN&gt;﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;I am getting a syntax error &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="font-family: 'Cambria','serif';"&gt;“The constructor in super class must be called (using SUPER-&amp;gt;Constructor) even if it does not exist, so that it can be implemented later. “&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;I don’t understand how to solve this. I am new to ABAB. &lt;/SPAN&gt;J﻿&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Cambria','serif';"&gt;Please help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 06:23:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440784#M1740264</guid>
      <dc:creator>former_member9607</dc:creator>
      <dc:date>2013-05-30T06:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440785#M1740265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your constructor include the statement &lt;STRONG&gt;super-&amp;gt;constructor( ). &lt;/STRONG&gt;as the first statement. Just like it says in the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 07:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440785#M1740265</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-05-30T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440786#M1740266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much. it is workig.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not getting the point why we need to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 09:28:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440786#M1740266</guid>
      <dc:creator>former_member9607</dc:creator>
      <dc:date>2013-05-30T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440787#M1740267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constructor is the first method to be called in OO programming. Just call the super class constructor in your sub class constructor method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the sample code for your reference. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1495/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapabap-4.blogspot.in/2013/03/sub-class-can-modify-constructor-of.html"&gt;http://sapabap-4.blogspot.in/2013/03/sub-class-can-modify-constructor-of.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 09:48:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440787#M1740267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-30T09:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440788#M1740268</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;You are inheriting here COMMON. If you want to access the instance components of this COMMON class in CREATE, you need to call constructor of COMMON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 10:05:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440788#M1740268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-30T10:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440789#M1740269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Krishna,&lt;/P&gt;&lt;P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;But i am not getting the point why we need to do this?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;You can draw analogy from the fact that a "child" cannot exist without the "parent". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 10:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440789#M1740269</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-05-30T10:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440790#M1740270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;The answer of my question "&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff; text-decoration: underline;"&gt;But i am not getting the point why we need to do this?"&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;&amp;nbsp; can be found here.. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #333333; font-size: 12px;"&gt;Look for the paragraph&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;H3&gt;&lt;/H3&gt;&lt;H3&gt;Inheritance and Constructors&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN lang="DE"&gt;The instance constructor of a class is called by the system when you instantiate the class using &lt;/SPAN&gt;&lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;CREATE OBJECT&lt;/SPAN&gt;&lt;SPAN lang="DE"&gt;. Since a subclass contains all of the visible attributes of its superclasses, which can also be set by instance constructors, the instance constructor of a subclass has to ensure that the instance constructors of all of its superclasses are also called. To do this, the instance constructor of each subclass must contain a &lt;/SPAN&gt;&lt;SPAN lang="DE" style="font-family: 'Courier New';"&gt;CALL METHOD SUPER-&amp;gt;CONSTRUCTOR&lt;/SPAN&gt;&lt;SPAN lang="DE"&gt; statement"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="DE"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DE"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="DE"&gt;Krishnakant Joshi&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 11:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440790#M1740270</guid>
      <dc:creator>former_member9607</dc:creator>
      <dc:date>2013-05-30T11:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Inheritance and constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440791#M1740271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because it is the law!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because ABAP is designed that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because good OO design suggests (for the reasons given by &lt;STRONG style="font-size: 11.111111640930176px; background-color: #ffffff; color: #333333;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://answers.sap.com/people/krishnakant.joshi" id="jive-63503546554872849181167" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7;"&gt;Krishnakant Joshi&lt;/A&gt;&lt;/STRONG&gt; below), that you should always call the super-constructor before doing anything in the constructor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 12:13:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/inheritance-and-constructor/m-p/9440791#M1740271</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-05-30T12:13:38Z</dc:date>
    </item>
  </channel>
</rss>

