Why C# Allows Creating Object With Same Reference?
Here Is Example of Code:
Button1_Click(object sender,EventArgs e)
{
PictureBox PB = new PictureBox;
PB.Name = TextBox1.Text;
}
In This Code When User Clicks the Button,New Object of PictureBox Will Be
Created Then Name Will Be Assigned to Object.How's this possible?
No comments:
Post a Comment