One more thing that I wanted to show you.
The declaration of a delegate can be inside of a class, but it can also be outside of a class.
Okay, so you can declare a delegate outside of any given class so that it is easily accessible from
other classes without having to create an object of a given class in which the delegate is created.
However, this really depends on your situation.
If the delegate is closely linked to the functionality of the class in which you want to create it,
then that's fine.
Otherwise, it's recommended to not use it inside of a class, but actually declare the delegate outside
of a class.
So that's just a little side note for your information.