0

What is it mean this code??in c#

Button button = (Button)sender;

17th May 2017, 10:19 PM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar
3 Antworten
+ 4
By casting it to a button you can use/access any public members of the object. Dog dog = (Dog)Animal; dog.bark(); dog.attack(); dog.getName(); It is a object of type Dog.
18th May 2017, 2:40 AM
Rrestoring faith
Rrestoring faith - avatar
+ 1
ok what is benefite from it
17th May 2017, 10:34 PM
ALAMOUDI, WAEL MAKKI S
ALAMOUDI, WAEL MAKKI S - avatar