Delegates: Simple introduction

From Mark Berck, a simple idea to explain delegates:

I never really understood how to delegates worked, until I received a very basic and simple explanation of someone. I'll try to explain it to you by creating a light bulb and switch.

In real life, when you flip a switch the light goes on or off. In the basic setting, you need three objects, the light bulb, switch and a wire. The light bulb and switch are connected by the wire.


 

1 Comment

Comments have been disabled for this content.