<?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 Wide casting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103096#M981205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please tell the usuage of wide casting.&lt;/P&gt;&lt;P&gt;preferable with simple code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jun 2008 10:09:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-28T10:09:45Z</dc:date>
    <item>
      <title>Wide casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103096#M981205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anybody please tell the usuage of wide casting.&lt;/P&gt;&lt;P&gt;preferable with simple code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2008 10:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103096#M981205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-28T10:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Wide casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103097#M981206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3021123"&gt;&lt;/A&gt;;&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;bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2008 11:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103097#M981206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-28T11:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: Wide casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103098#M981207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anirban,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wide casting is nothing but method os assinging data object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/79/c55491b3dc11d5993800508b6b8b11/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/79/c55491b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3930358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3930358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jun 2008 12:23:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103098#M981207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-28T12:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Wide casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103099#M981208</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;1. Wider/up casting : &lt;/P&gt;&lt;P&gt;This means a ref object used is of a parent. Now here technically speaking you can only call the methods of the parent class and not of the child class. Even if the parent object is referencing to a child object at runtime, the compiler does not allow you to call the child method.&lt;/P&gt;&lt;P&gt;Wide casting does not have run-time errors as the compiler is able to identify the error at compile time only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wide casting is helpful when you want to have a generic parameter as the importing parameter in OOPs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class p1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;method x.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class c1 parent p1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;method y.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class c2 parent p1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;method z.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above example both class c1 and c2 are subclasses of p1 and therefore has method x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now let us say the user at runtime can pass object of c1,c2 or p1 and method x has to be capable of receiving all these, then in such case you can assign reference object of parent to method x.&lt;/P&gt;&lt;P&gt;So method x can be defined as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class p1&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;method x importing p  -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;&amp;gt; where p is type ref to p1.&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this explains your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 06:28:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103099#M981208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T06:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Wide casting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103100#M981209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank all.&lt;/P&gt;&lt;P&gt;i have got the concept.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2008 11:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wide-casting/m-p/4103100#M981209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-30T11:19:22Z</dc:date>
    </item>
  </channel>
</rss>

