|
-
April 12th, 2011, 03:19 AM
#1
[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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|