Delegates in C # and fnc pointers in C ++

I try to get acquainted with the delegates and http://msdn.microsoft.com/en-us/library/aa288459(v=vs.71).aspx , I read:

"Unlike function pointers in C or C ++, delegates are object oriented, type safe, and safe."

On average, I have a background in C ++, and I don’t see how to understand the word "as opposed to." What do delegates understand, are object oriented, but C ++ fnc pointers are not? The same goes for the safe type and the safe.

Can anyone show some examples and examples?

Thank.

+5
source share
1 answer

, . , . ++. . "-" .

, , , . ++, . , , , . .

+6

All Articles