View Single Post
  #1 (permalink)  
Old December 1st, 2016, 08:45 PM
maninblack maninblack is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Lightbulb Chapter 08 Try it out Ch08Ex01

Hello Everyone,
I am very very new in programming even I don't have any basic of any programming language. I started learning C# from this book and found this book very resourceful and discussed in deep which helps very much. I have an understanding problem on chapter 08 try it out 01.

As per author
Code:
 ((Button)sender).Content = "Clicked!";
makes use of polymorphism but I am not understanding how this thing uses polymorphism?

My Second understanding problem with
Code:
((Grid)((Button)sender).Parent).Children.Add(newButton);
I didn't understand this code at all.

Can anyone help me to understand these?

Thanks in advance.

Last edited by maninblack; December 1st, 2016 at 09:27 PM..
Reply With Quote