CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Mar 2011
    Posts
    3

    [RESOLVED]How is this polymorphism ... [/RESOLVED]

    I am newbie and tryin to learn C#.. I understand what is polymorphism but I dont understand how
    this is polymorphic behaviour

    1. Create a new Windows application
    2. Add a new Button control using the Toolbox, and position it in the center of Form1

    private void button1_Click(object sender, System.EventArgs e)
    {

    ((Button)sender).Text = "Clicked!"; //HOW IS THIS Polymorphic behaviour

    }
    Last edited by Skhasan; April 12th, 2011 at 07:09 PM. Reason: [RESOLVED]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured