<?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: sample Programs on polymorphism using oops? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206741#M132454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism is the property of OOP whereby it allows one interface to be used for a general class of actions.It means you can ask different objects to perform different implementation in a similar way of calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also sent u a program on Polymorphism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sylendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Mar 2006 13:27:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-29T13:27:21Z</dc:date>
    <item>
      <title>sample Programs on polymorphism using oops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206739#M132452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some sample programs on polymorphism using oops.&lt;/P&gt;&lt;P&gt;If u provide it will be very helpful to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;&amp;lt;removed by moderator&amp;gt;&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 13:11:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206739#M132452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T13:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: sample Programs on polymorphism using oops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206740#M132453</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;Check this examples &amp;lt;b&amp;gt;demo_interface&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;                   &amp;lt;b&amp;gt;demo_inheritance&amp;lt;/b&amp;gt; in SE38.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 13:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206740#M132453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: sample Programs on polymorphism using oops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206741#M132454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polymorphism is the property of OOP whereby it allows one interface to be used for a general class of actions.It means you can ask different objects to perform different implementation in a similar way of calling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also sent u a program on Polymorphism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sylendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2006 13:27:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206741#M132454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-29T13:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: sample Programs on polymorphism using oops?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206742#M132455</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;&lt;/P&gt;&lt;P&gt;  its  a characteristic of OOPS wher objects fr different class react differently 2 same function call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Shape.java
public interface Shape{   

  public void draw(){
  }
}


Square.java
class Square implements Shape{  

    public void draw(){
      System.out.println("Drawing a square.....");   
   }
}


circle.java
class Circle implements Shape{    

   public void draw(){
       System.out.println("Drawing a Circle....");    
  }
}


class ShapeGenerator{
Shape shape;

   public void drawSquare() {
    shape=new Square();      
    shape.draw(); 
  }

  public void drawCircle(){
    shape=new Circle();     
    shape.draw();
  }
}
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcelo Ramos on Jan 6, 2009 11:36 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 20:21:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sample-programs-on-polymorphism-using-oops/m-p/1206742#M132455</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-02T20:21:59Z</dc:date>
    </item>
  </channel>
</rss>

