Can somebody explain me the use of "Delegate" and its equivalent in java... I am learning java programming and has encountered a C# program which use "Delegate" and pass on functions as arguments to another function.... I am trying to modify the C# program for use in java...
abra_ka_dabra
0
Light Poster
Recommended Answers
Jump to PostYou'd be better asking this in the Java section. Java has no easy way of replicating delegates from C#.
At best, a delegate is a single method interface. I believe that there is a "Delegator" pattern for Java, but I don't know much about it.
All 3 Replies
Ketsuekiame
860
Master Poster
Featured Poster
abra_ka_dabra
0
Light Poster
sepp2k
378
Practically a Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.